Rsync over SSH with key authentication

0
1659

Setup the SSH login with key authentication

Create a new ssh key pair:

ssh-keygen -t rsa -b 2048 -f ductam-rsync-key

Move the public(!) key to the remote server:

scp ductam-rsync-key.pub [email protected]:/home/

Append the public key to the “authorized_keys” on your remote server:

ssh -l root ductam.info
cat ductam-rsync-key.pub >> .ssh/authorized_keys

Test the connection:

ssh -l root -i ~/.ssh/ductam-rsync-key ductam.info

You should not be prompted for a password.

Leave a Reply

avatar
  Subscribe  
Notify of