I rebuilt my warm spare server lately. I am now setting up the warm spare backup and having issues. I get the error “Something went wrong when connecting to remote server. Aborting!”
Here is my ssh output when I set up the ssh access .107 is my warm spare server, .109 is my primary PBX
Current Network Configuration
±----------±------------------±--------------------------+
| Interface | MAC Address | IP Addresses |
±----------±------------------±--------------------------+
| eth0 | 68:05:CA:2D:8F:63 | 192.168.1.107 |
| | | fe80::6a05:caff:fe2d:8f63 |
±----------±------------------±--------------------------+
Please note most tasks should be handled through the GUI.
You can access the GUI by typing one of the above IPs in to your web browser.
For support please visit:
Training & Support | FreePBX - Let Freedom Ring
[root@localhost ~]# sudo -u asterisk ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/asterisk/.ssh/id_rsa):
/home/asterisk/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/asterisk/.ssh/id_rsa.
Your public key has been saved in /home/asterisk/.ssh/id_rsa.pub.
The key fingerprint is:
cc:0a:41:05:f8:37:b5:54:a7:91:a6:c4:42:97:01:bf [email protected]
The key’s randomart image is:
±-[ RSA 2048]----+
| .o++oo+o… |
| … .o* o+ |
| … =.+. |
| …ooo. |
| … .E |
| . . |
| . |
| |
| |
±----------------+
[root@localhost ~]# sudo -u asterisk ssh-copy-id -i /home/asterisk/.ssh/id_rsa.pub [email protected]
[email protected]’s password:
Now try logging into the machine, with “ssh ‘[email protected]’”, and check in:
.ssh/authorized_keys
to make sure we haven’t added extra keys that you weren’t expecting.
[root@localhost ~]# ssh -i /home/asterisk/.ssh/id_rsa [email protected]
Last login: Mon Oct 30 19:04:24 2017 from 192.168.1.107
| | __ ___ | _ | __ ) / /
| | | '/ _ / _ \ |) | _ \ /
| || | | __/ __/ __/| |) / \
|| || _|_|| |__//_\
NOTICE! You have 1 notifications! Please log into the UI to see them!
Current Network Configuration
±----------±------------------±--------------------------+
| Interface | MAC Address | IP Addresses |
±----------±------------------±--------------------------+
| eth0 | 68:05:CA:2D:B6:E6 | 192.168.1.109 |
| | | fe80::6a05:caff:fe2d:b6e6 |
| eth1 | 00:21:97:6A:9C:3F | |
±----------±------------------±--------------------------+
Please note most tasks should be handled through the GUI.
You can access the GUI by typing one of the above IPs in to your web browser.
For support please visit:
Training & Support | FreePBX - Let Freedom Ring
[root@localhost ~]#
Error in UI when trying to run the backup
functions.inc.php(48) :=log_dir’/var/log/asterisk’
Initializing Backup 2
functions.inc.php(48) :=log_dir’/var/log/asterisk’
Connecting to remote server…
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
functions.inc.php(48) :=log_dir’/var/log/asterisk’
Something went wrong when connecting to remote server. Aborting!
This worked before I rebuilt the server. I have tried deleting the keys and retrying but can’t get it to work.
Even just trying to SSH from the warm backup to the primary doesn’t work.
[root@localhost ~]# ssh [email protected]
ssh: connect to host 192.168.1.109 port 22: Connection refused
[root@localhost ~]#
Is there a way to do a clean erase of the connecton between servers so I can start fresh? I feel like that may fix it.