OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Dropbear And Keys Info (no Password Login)
dino
post Dec 2 2004, 11:01 AM
Post #1





Group: Members
Posts: 65
Joined: 5-January 04
Member No.: 1,362



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:
...
Go to the top of the page
 
+Quote Post
Mickeyl
post Dec 2 2004, 11:13 AM
Post #2





Group: Members
Posts: 1,497
Joined: 12-November 03
From: Germany
Member No.: 907



Buglet in dropbear. You need to ssh into the remote host once. After that, dropbear knows the hostkey and you can use scp.
Go to the top of the page
 
+Quote Post
dino
post Dec 2 2004, 01:19 PM
Post #3





Group: Members
Posts: 65
Joined: 5-January 04
Member No.: 1,362



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#
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th November 2014 - 02:12 AM