Logging into SSH without a password...

aquamanx

Registered
I have been trying to crete and automated backup for my OS X server boxes. I have a shell script that works up to a point. I need to find a way to securely transfer those files onto another server..either by secure FTP or by SSH. I have tried this several times and can't seem to get it to work. I need to log in without a password. I tried it the MAN pages said, but I think I need it spelled out in plainer english. Can anyone help please????

Spencer Parker
 
On the machine you will be sending files TO:

mkdir .ssh
chmod 755 .ssh


On the machine you will be sending files FROM:

ssh-keygen -n''
scp .ssh/identity.pub remote_ip:.ssh/authorized_keys

(that was 2 single-quotes in a row on the first line)

Be very careful about access to the .ssh/identity file on the FROM machine, as it is not password protected, and if someone gets access to that account, they also get access to the account on the other machine.
 
Since that didn't work, just run ssh-keygen instead, but don't give it a password. Thank should let it work.
 
Back
Top