Japanatron Logo

Go to /root on 1st server.
ssh root@server1
cd /root


FreeNAS OS drive is mounted read-only, so mount it RW.
mount -o rw /

Generate an RSA key & leave the passphrase blank.  You can use another supported algorithm if you wish.
ssh-keygen -t rsa

Display the public key.
more .ssh/id_rsa.pub


Copy / paste the key to a text editor and remove any line breaks.  The key should appear on 1 line.  Leave the spaces intact (e.g. the space after "ssh-rsa").

Copy / paste the key to /root/.ssh/authorized_keys on the 2nd server.

Repeat the above process for the 2nd server.  Create the key on the 2nd server, and copy/paste it to the 1st.

Test your new SSH keys by SSH-ing into the 2nd server from the 1st and vice-versa.  The first time you'll get prompted to trust the key.  Accept the prompt to add the host to known_hosts.  Disconnect and SSH again.  It should connect immediately without prompting for a password.
ssh root@server1

The keys have been swapped successfully, so you can now setup your rsync jobs.

Related Articles

Nginx - How to Block or Redire...

I've been figuring out how to block or redirect web traffic in Nginx based on the country geoIP. NOTES* You need the package nginx-extras for this because this...

Zimbra - Add Trusted Relay to ...

My domain name registrar offers email aliases and forwarding; however, this feature causes my mail server's SPF checks to fail because the registrar's mail rela...

Combine Image File and Audio F...

I wanted to figure out a way to quickly and easily combine an image file (jpg) and audio file (mp3) into a video file (mov) using the free media converter tool ...

Linux - Specify From Address W...

I struggled a bit with figuring out how to specify the from email address when sending mail on the Linux command line.  In short, you need to use the -r option....