Rsync to another server without password

Run on the local server ( – 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/

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

# ssh