The dropbear project provides very interesting implementation of SSH server. It has advantage of very low memory footprint, which might be crucial in case of embedded devices. Personally I use dropbear on NSLU2 device (aka SLUG).
I was a little bit disappointed when I tried
scp command against dropbear server (on debian host):
$ scp .ssh/id_rsa.pub root@slug:authorized_keys bash: scp: command not found lost connection
sftp root@slug Connecting to slug... bash: /usr/lib/sftp-server: No such file or directory Connection closed
Dropbear comes without
sftp-server commands. On debian you can find them in
openssh-server package. Installing it would bring a lot of unwanted dependencies not even mentioning that I would have to make sure that OpenSSH server is not going to start and compete with my little
dropbear. Here is simple scp-like solution.
cat .ssh/id_rsa.pub | ssh root@slug 'tee authorized_keys >/dev/null'
I hope it will help someone.