From c133fbbef6e7a83092e4b471a8c678a5cd4597e9 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sat, 28 May 2022 20:41:10 +0200 Subject: [PATCH] push_pkg.sh: use scp protocol for openssh scp (#2479) Starting from OpenSSH 9.0p, scp started to use sftp in favor of the scp protocol by default. As dropbear in OpenWrt currently does not support sftp by default, we now use the fallback cli switch "-O" to use the scp protocol for scp. --- contrib/push_pkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/push_pkg.sh b/contrib/push_pkg.sh index c12a02e6..df431e08 100755 --- a/contrib/push_pkg.sh +++ b/contrib/push_pkg.sh @@ -127,7 +127,7 @@ while [ $# -gt 0 ]; do # shellcheck disable=SC2029 if [ -n "$filename" ]; then - scp -P "${ssh_port}" "$feed/$filename" "root@${BL}${ssh_host}${BR}:/tmp/${filename}" + scp -O -P "${ssh_port}" "$feed/$filename" "root@${BL}${ssh_host}${BR}:/tmp/${filename}" ssh -p "${ssh_port}" "root@${ssh_host}" " set -e echo Running opkg: