Unless you have installed OpenSSH on your gumstix you must use dropbear to
generate your keys on the gumstix. Assuming that you want to initiate scp
from your you must generate your keys on the gumstix using:
dropbearkey -t rsa -f ~.ssh/id\_rsa.db
instead of ssh-keygen. This will display your public key on the screen;
this must be pasted into the ~/.ssh/authorized_keys file in the remote
computer account. You must be careful to keep the public key on a single
line in that file...the format is
ssh-rsa <.......key.........> comment
where the comment is optional but the space after the ssh-rsa is not.
Then when you issue the scp command (eg from a script on the gumstix) it
must be of the form:
scp -i ~/.ssh/id\_rsa.db your_file usr@...
I just spent two days getting that to work. Let me know if you have
Date: Thu, 17 Apr 2008 17:26:56 -0700 (PDT)
From: Hanguang <hanguang_huang@...>
Subject: Re: [Gumstix-users] Need help on C/C++
Content-Type: text/plain; charset=us-ascii
I followed the link you gave
I log into the Gusmtix using "ssh root@..." and enter those
# mkdir ~/.ssh
# chmod 700 ~/.ssh
# ssh-keygen -q -f ~/.ssh/id_rsa -t rsa
and this is what I got:
# ssh-keygen -q -f ~/.ssh/if_rsa -t rsa
-sh: ssh-keygen: not found
Which part did I do wrong?
I found another tutorial:http://www.linuxjournal.com/article/8600
The difference between your link and this one is, this one told me to create
the "id_rsa.pub" file (the public key) on Fedora (not on Gumstix), and then
send it to Gumstix under this path:/root/.ssh/authorized_keys.
But the problem is, although the key file "id_rsa.pub" is in the
"authorized_keys" folder, it still prompt password everytime I use "scp"
Where am I wrong?
Another question, when I use the "scp" command to send file, it halt after
the file was successfully transfered. I have to type ctlr + c to exit.
Should I type something after "scp", such as "-x" to finish the transfer
View this message in context:
Sent from the Gumstix mailing list archive at Nabble.com.