![]() ![]() |
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: ... |
|
|
|
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.
|
|
|
|
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# |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 03:33 PM |