http://pkeck.myweb.uga.edu/ssh/
1) make sure ssh and rsync are installed on both computers
2) at the visitor machine’s shell window, type the following command
$ cd /root/.ssh
$ ssh-keygen -t dsa -b 1024 -f visitor_machine_key
enter a BLANK passphrase
3) generate a file called “config” in the visitor machine under /root/.ssh/ with options like these
Host remote_host_machine
User root
Compression yes
Protocol 2
RSAAuthentication yes
StrictHostKeyChecking no
ForwardAgent yes
ForwardX11 yes
IdentityFile /root/.ssh/visitor_machine_key
4) Copy the /root/.ssh/visitor_machine_key.pub file and paste the file in or
at the end of the remote host machine’s file /root/.ssh/authorized_keys2
When cutting and pasting the public key to remotehost’s /root/.ssh/authorized_keys2, don’t forget to remove the new line characters.