Scheduled Backups 'Could not authenticate'

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Backups 'Could not authenticate'

Post by ssax »

In addition to what tgriep is asking for:

What version of opensuse are you running? I assume it's logging SSH connections/failures, I just want to see what it's saying.

The way it works is it first establishes an SSH connection (which is succeeding for you) and then it will authenticate (which is failing).

Try to SSH with this command and see if it fails, if it doesn't work then it probably doesn't support SSH v2 or is disabled in your /etc/sshd/sshd_config. Maybe there is a setting in your sshd_config on the remote server that is blocking it, please post a sanitized copy of that.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post by thur686 »

php-pecl-ssh2.x86_64 0.11.0-7.el6
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Scheduled Backups 'Could not authenticate'

Post by jdalrymple »

also to isolate the problem to the remote host (or at least prove *something* works on the NagiosXI box) you can run a test to localhost.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post by thur686 »

Good morning and thank you.

I can SSH from the Nagios XI (CentOS) server to the backup server (OpenSuSE) using 'ssh -2 user@serverip' without a problem.

I will sanitize and post the ssh_config shortly.

Thanks again.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post by thur686 »

The server OS that I'm trying to backup to is: openSUSE 13.1 (x86_64).

I've attached the ssh_config, it is out of the box, no custom edits.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Scheduled Backups 'Could not authenticate'

Post by lmiltchev »

Could you also post the "sshd_config" file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post by thur686 »

Ok, here it is. Attached.

It does seem strange that SSH works via shell between the two, but not through the web console.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Scheduled Backups 'Could not authenticate'

Post by lmiltchev »

Open the "sshd_config" file in a text editor and change the following line from this:

Code: Select all

PasswordAuthentication no
to this:

Code: Select all

PasswordAuthentication yes
Restart sshd:

Code: Select all

/etc/init.d/sshd restart
From the Nagios XI web UI (under "Scheduled Backups"-> SSH tab), click on "Test Connection" to see if the issue was resolved.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Backups 'Could not authenticate'

Post by ssax »

I spun up an openSUSE 13.1 server and tested it and if failed like yours, lmiltchev's solution fixed mine.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post by thur686 »

Sorry for the delay, meetings got in the way. Anyway, that worked!

Editing /etc/init.d/sshd, changing (PasswordAuthentication) to yes resolved the problem.

Testing Scheduled Backups now displays a success message: Test file "ssh_test_secure_copy.txt" transferred successfully.

Thanks!
Locked