Remote backups - Could not authenticate

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
razah
Posts: 12
Joined: Tue Jun 25, 2019 4:26 am

Remote backups - Could not authenticate

Post by razah »

Hi

I am trying to get remote backups working from my nagiosxi server to a backup nagiosxi server both are centos 7 vms.

When i try an authenticate using ssh keys i get Could not authenticate. However if i use a password it works. i can not see anything in /var/logs/secure on the backup server to give any clues to why it is failing

I have looked at this post https://support.nagios.com/forum/viewto ... 47&start=0 but that has not helped.

Any ideas ?
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Remote backups - Could not authenticate

Post by jbrunkow »

I'm not sure that SSL errors will be written there. Can you try looking in the following logs instead?

Code: Select all

/usr/local/nagiosxi/var/components/scheduledbackups.log
/usr/local/nagiosxi/var/cmdsubsys.log
/var/log/httpd/error_log
/var/log/httpd/access_log
NAGIOS XI LOGS
That may give you a more detailed picture of what is going on.

Could the SSL certificate be expired?

It never hurts to send ( PM ) us a profile either! We can find lots of information about your system in there. You can download the profile by navigating to System Profile under System Config on the left pane > and clicking the Download Profile button on that page.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Remote backups - Could not authenticate

Post by lmiltchev »

Can you go to Admin > System Backup > Scheduled Backups > SSH tab and show a screenshot of that page?

Did you copy the public key from the Nagios XI server to the authorized_keys on the remote "backup" server?

Example:

Code: Select all

ssh-copy-id -i /usr/local/nagiosxi/var/keys/ssh.xi.xxx.pub user@remoteip
Try testing the connection from the command line by running:

Code: Select all

sudo -u nagios ssh -i /usr/local/nagiosxi/var/keys/ssh.xi.xxx user@remoteip
enter the private key password when asked (you can view/copy it from the GUI) to see if the connection will succeed.

Example:

Code: Select all

[root@main-nagios-xi]# sudo -u nagios ssh -i /usr/local/nagiosxi/var/keys/ssh.xi.1594741274 [email protected]
Enter passphrase for key '/usr/local/nagiosxi/var/keys/ssh.xi.1594741274':
Last login: Tue Jul 14 11:02:28 2020 from y.y.y.y
[root@nagios-core ~]# exit
logout
Connection to x.x.x.x closed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked