OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: dino on December 02, 2004, 02:01:35 pm

Title: Dropbear And Keys Info (no Password Login)
Post by: dino on December 02, 2004, 02:01:35 pm
One of the first things I did with my new 3.5.2 install was to attemt getting my daily scripts to work.  I can ssh with no password prompt, but I still can't automate scp.
I thought the following post by Marcin Juszkiewic might be helpful for others.
Quote
...
On Zaurus I used "dropbearkey -t rsa -f ~/.ssh/id_rsa" to generate key. Then
"dropbearkey -y -f ~/.ssh/id_rsa" and copied publickey to desktop
~/.ssh/authorized_keys. Desktop id_rsa.pub is added to ~/.ssh/authorized_keys
on Zaurus.

This allow me to login from desktop to Zaurus via simple "ssh user at zaurus" and
from Zaurus to desktop via "ssh -i ~/.ssh/id_rsa user at desktop".

But there is a problem with SCP. I can "scp file user at zaurus:" from desktop
and it works ok. But from Zaurus to desktop it doesn't work - always ask for
password:
...
Title: Dropbear And Keys Info (no Password Login)
Post by: Mickeyl on December 02, 2004, 02:13:59 pm
Buglet in dropbear. You need to ssh into the remote host once. After that, dropbear knows the hostkey and you can use scp.
Title: Dropbear And Keys Info (no Password Login)
Post by: dino on December 02, 2004, 04:19:59 pm
Thanks for the advice.  I've already tried ssh into the server and accepted the server as a known host.  Ssh works great with no password prompt.  scp gives me the following:
Quote
root@collie:/mnt/card/Documents/temp# scp -i /root/.ssh/id_rsa dino@satlug.org:backup/*.sh /root/Documents/
WARNING: Ignoring unknown argument '-x'
WARNING: Ignoring unknown argument '-oForwardAgent no'
WARNING: Ignoring unknown argument '-oClearAllForwardings yes'
Failed loading keyfile '-l'
/usr/bin/dbclient: exited: Error resolving: Name or service not known
root@collie:/mnt/card/Documents/temp#