Rsync over SSH without password

First install on both servers rsync and test that rsync works with password:

rsync -avz -e 'ssh -p SSHREMOTEPORT' /home/user/ user@

If it works then generate key on the server that will be syncing to remote:

Enter passphrase (empty for no passphrase):
Enter same passphrase again:

Leave passwords empty.

Copy generated key to remote server:

scp -p SSHREMOTEPORT ~/.ssh/ user@

Then final test without entering password repeat command:

rsync -avz -e 'ssh -p SSHREMOTEPORT' /home/user/ user@

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.