Magisk-Modules-Repo / ssh

ssh
180 stars 34 forks source link

scp doesn't work #16

Open gitaner opened 5 years ago

gitaner commented 5 years ago

The scp command does not work. It shows: /usr/local/bin/ssh: No such file or directory lost connection

The reason is, that scp looks for ssh and cannot find it, as the path of ssh is hardcoded in /data/adb/modules/ssh/usr/bin/raw/scp as "/usr/local/bin/ssh"

ssh and rsync work fine.

Thank you for the module.

Rajah01 commented 1 year ago

Bump. Still a problem, after 4+ years.

Clunky fix that survives reboot: mkdir /data/user/bin -- In both scp and sftp binaries (located in /data/adb/modules/ssh/usr/bin/raw), change (hex edit) the unique instances of "/usr/local/bin/ssh" to "/data/user/bin/ssh" -- Make a link: ln -s /data/adb/modules/ssh/usr/bin/raw/ssh /data/user/bin/ssh

githuborer commented 11 months ago

winscp cant log in: keyfile refused by device. with putty I can log in without problems.