Author Topic: Dropbear And Keys Info (no Password Login)  (Read 3644 times)

dino

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
Dropbear And Keys Info (no Password Login)
« 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:
...
SL5500, Open Zaurus 3.5.2, 128MB SD

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Dropbear And Keys Info (no Password Login)
« Reply #1 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.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

dino

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
Dropbear And Keys Info (no Password Login)
« Reply #2 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#
SL5500, Open Zaurus 3.5.2, 128MB SD