What's new

SSH Keys and rsync

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

jvande

New Around Here
Ok,

Kind of a newbie question here, but I've been looking for about 4 hours now trying to figure out how to do this:

I have a USB HD hooked up on /mnt/BACKUP I'd like to remote SSH into a server and rsync files on the remote server to my USB HD. (a backup system). I can SSH into my router and SSH into my remote server (HOSTGATOR). When I try to rsync, it gives an error that it needs to have SSH authentication set up. I've got a public and a private key generated by the remote server, but where do I put the keys? I can generate new keys from the router (Merlin's latest build) as well, but where do I put those keys on my remote server? I'm a little confused and am having a hard time finding information on dropbear usage. Are there any other alternatives to what I'm trying to do? Is there a tutorial or walk-through on ssh key installation? Is there a way to rsync without SSH (I know its not as secure).

Thanks in advance.
 
jvande,

Dropbear is funny about what keys it can use, so you need to generate the keys on your router by running: dropbearkey -t rsa -f ~/.ssh/id_rsa
Then put the publickey on your hostgator server. When you issue the rsync command you will need to pass the following arguments to specify the key location: -e "ssh -i ~/.ssh/id_rsa"

See also: http://yorkspace.wordpress.com/2009/04/08/using-public-keys-with-dropbear-ssh-client/
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top