...
“Public key of this system” field will display the own system public key.
“Public key of other system” field will display the other (secondary / remote/ warmspare) system public key.We can copy and paste the other system public key to the “public
On primary server Copy the “Public key of this system” field ssh key and then login to the “secondary server FreePBX UI → Backup & Restore → Global Setting ” and paste this content into the “Public key of other system” field to make the ssh association between both the servers and vice versaand save & submit.
Repeat the above process to copy the secondary server key to the primary server.
There is no need to doing any manual cli operation now, however if someone wants then can do the same , it just in PBX17+ instead of “/home/asterisk/.ssh/id_rsa.pub” , please use “/home/asterisk/.ssh/id_ecdsa.pub” to add into “authorized_keys” in the path “/home/asterisk/.ssh”.
...
At the prompt type: ssh -i /home/asterisk/.ssh/id_rsa root@SecondaryServerIP
If all went well, you should now be logged in to the Secondary server.We can use the below method to copy the SSH keys to the Secondary (Warm spare) server.In FreePBX UI > Admin > Backup & Restore > Global Settings, we have an option to copy key and paste in other PBX systems > Backup & Restore > Global Settings > Public key of other system. This key is copied to the file “authorized_keys” in the path “/home/asterisk/.ssh”