Search Our Database
How to rsync without password
Step 1: SSH to Local Server and key in below command:
ssh-keygen
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Step 2: Copy the key file over remote server.
Step 3: Rename the key file to below directory and grant permission 700.
mv KEYFILES ~/.ssh/authorized_keys
chmod 700 ~/.ssh/authorized_keys
You can test by SSH to remote server without using password now!
Example rsync command:
rsync -avz -e "ssh -p 9321" /file root@123.123.123.123:/home/