The following steps will be complated on the backup server [192.168.0.7].
$ ssh-keygen -t dsa -b 1024 -f rsync.key
Generating public/private dsa key pair
Enter passphrase (empty for no passphrase): [Enter without any input]
Enter same passphrase again: [Enter without any input]
Your identification has been saved in yenjinc.info-key.
Your public key has been saved in yenjinc.info-key.pub.
The key fingerprint is:
Update the following params in the sshd configuration file.
“PubkeyAuthentication” should be set to “yes”.
“PermitRootLogin” should be set to either “without-password”, or “forced-commands-only”.
Then, reload the sshd
$sudo /etc/init.d/sshd restart
Add the public key to server-side host
You should finished the following steps on the backup server.