Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4824

Troubleshooting • sshpass, scp and sftp on Bookworm

$
0
0
Local host is a Pi 4B running Bookworm
Local hostname is txtouch.local
Remote host is an Analog Devices PlutoSDR Revision C/D
Remote hostname is pluto.local

scp requires /usr/libexec/sftp-server, but Bookworm keeps it in /usr/lib/

The following cmd clearly prints the remote's uname on the local host:

Code:

sshpass -p analog ssh root@pluto.local uname -aWarning: Permanently added 'plutosdr' (ECDSA) to the list of known hosts.Linux pluto.local 4.14.0-g387d584d434e-dirty #14 SMP PREEMPT Sat Nov 16 23:07:09 CET 2019 armv7l GNU/Linux
I can also create a remote file as follows:

Code:

sshpass -p analog ssh root@pluto.local touch /www/test.txtWarning: Permanently added 'plutosdr' (ECDSA) to the list of known hosts.
So far so good, but attempting to copy a file from to the remote host fails:

Code:

sshpass -p analog scp -D /usr/lib/sftp-server -v ~/test.txt root@pluto.local:/www/Executing: program /usr/lib/sftp-server host pluto.local, user (unspecified), command sftpscp: debug1: stat remote: No such file or directoryscp: dest open "/www/": Failurescp: failed to upload file /home/pi/test.txt to /www/
I'm kind of stuck and need help - especially as it was working perfectly on Bullseye and I'm expecting this be the remaining issue preventing me from permanently migrating to Bookworm.

Statistics: Posted by mbn — Tue Aug 13, 2024 5:38 pm



Viewing all articles
Browse latest Browse all 4824

Trending Articles