Rsync to another server without password

Run on the local server (192.168.1.101) – THE SERVER YOU ARE RSYNCING FROM.


# ssh-keygen
Enter passphrase (empty for no passphrase):
Enter same passphrase again:

Use ssh-copy-id, to copy the public key to the remote host.


# ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.1.102

Now, ssh to the remote server you want to remote to.

# ssh 192.168.1.101