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
Toshiba 37Z2000 TV - Sensitive...
My Toshiba 37Z2000 TV has a cool feature that allows me to record TV over my network to a CIFS (aka Samba) file share on my FreeNAS server. Unfortunately, howe...
Joomla Running on Nginx and Ub...
What follows is an outline I compiled while building an Ubuntu server for running the Joomla CMS on the Nginx web server. NOTE: Ubuntu 14.04 LTS was used for th...
The Hunt for the Ultimate VPS ...
If IT geek-dom were a crime, I'd be on death row by now. Fortunately, it is not; so I continue my dorky IT pursuits--the latest of which is finding a VPS cloud...
Ubuntu 24.04 Nginx Build Outli...
I re-built my LEMP web-server fresh on Ubuntu 24.04 and learned some things along the way. This is my base build outline mostly created for my own notes. INS...