Skip to content
Snippets Groups Projects
Unverified Commit c133fbbe authored by lemoer's avatar lemoer Committed by GitHub
Browse files

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.
parent b690939f
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,7 @@ while [ $# -gt 0 ]; do ...@@ -127,7 +127,7 @@ while [ $# -gt 0 ]; do
# shellcheck disable=SC2029 # shellcheck disable=SC2029
if [ -n "$filename" ]; then 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}" " ssh -p "${ssh_port}" "root@${ssh_host}" "
set -e set -e
echo Running opkg: echo Running opkg:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment