dropbear icon indicating copy to clipboard operation
dropbear copied to clipboard

scp does nothing

Open acornblue opened this issue 4 years ago • 2 comments

Unable to copy authorized_keys using scp. There is no errors. It just sits there $ scp authorized_keys [email protected]:authorized keys

It worked 3 months ago. I checked history & nothing has changed... Same clean image of raspberry pi. Only Termux has been updated. Note: I can ssh into the server.

I ended up installing openssh to copy the file. On a whim, I switched back to dropbear & scp works with keys...

I'm using dropbear (2020.81-1) on a pixel 3 with android 11 via termux. ssh server is running on a raspberry pi 4 with raspberry pi os 32bit release 1/11/2021

acornblue avatar Mar 06 '21 09:03 acornblue

Dropbear does not include an SFTP server or the scp command-line utility, so this would always need to be installed separately. Did you install/setup either an SFTP server or scp?

I guess you use Raspberry Pi OS. To install scp, the easiest way is to install the standalone OpenSSH binary:

apt install openssh-client

If SFTP is wanted (note that SCP basically is deprecated):

apt install openssh-sftp-server

These packages do not include the OpenSSH server, just the client (which includes scp), respectively the standalone SFTP server, which is a single executable as well, essentially. Dropbear, respectively the SSH clients automatically start these executables server-side to get SFTP/SCP transaction done.

MichaIng avatar Nov 20 '22 13:11 MichaIng

I'm a bit surprised it wouldn't print any error message if scp or sftp was missing.

mkj avatar Nov 28 '22 13:11 mkj