Page 2 of 3
Re: Scheduled Backups 'Could not authenticate'
Posted: Tue Jun 09, 2015 4:11 pm
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.
Re: Scheduled Backups 'Could not authenticate'
Posted: Tue Jun 09, 2015 4:34 pm
by thur686
php-pecl-ssh2.x86_64 0.11.0-7.el6
Re: Scheduled Backups 'Could not authenticate'
Posted: Tue Jun 09, 2015 4:37 pm
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.
Re: Scheduled Backups 'Could not authenticate'
Posted: Wed Jun 10, 2015 8:15 am
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.
Re: Scheduled Backups 'Could not authenticate'
Posted: Wed Jun 10, 2015 8:29 am
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.
Re: Scheduled Backups 'Could not authenticate'
Posted: Wed Jun 10, 2015 10:08 am
by lmiltchev
Could you also post the "sshd_config" file?
Re: Scheduled Backups 'Could not authenticate'
Posted: Wed Jun 10, 2015 10:38 am
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.
Re: Scheduled Backups 'Could not authenticate'
Posted: Wed Jun 10, 2015 12:16 pm
by lmiltchev
Open the "sshd_config" file in a text editor and change the following line from this:
to this:
Restart sshd:
From the Nagios XI web UI (under "Scheduled Backups"-> SSH tab), click on "Test Connection" to see if the issue was resolved.
Re: Scheduled Backups 'Could not authenticate'
Posted: Wed Jun 10, 2015 1:24 pm
by ssax
I spun up an openSUSE 13.1 server and tested it and if failed like yours, lmiltchev's solution fixed mine.
Re: Scheduled Backups 'Could not authenticate'
Posted: Wed Jun 10, 2015 2:23 pm
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!