Page 1 of 2
Nagios 3 and SSH
Posted: Mon Jun 02, 2014 7:05 pm
by Metalliogre
I am getting a 'connection refused' on my SSH in Nagios. I couldn't find squat on how to configure. Any advice would be helpful. Thanks! Screenshot is attached.
Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 9:18 am
by slansing
Do you have an ssh daemon running on the local nagios server? Is port 22 open?
Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 11:09 am
by Metalliogre
No sir. I am not aware on how to take these steps. Any helpful info would be greatly appreciated.
Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 11:13 am
by tmcdonald
Depending on your server's OS, you might have to install SSH in a different way. It looks like you are running Debian, so this should work:
Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 11:15 am
by Metalliogre
Thank you! I will try as soon as possible. How do I go about opening port 22? Thanks!
Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 11:35 am
by Metalliogre
Tried that command and got a 'cannot find openssh package' error.
Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 12:05 pm
by abrist
Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 12:08 pm
by Metalliogre
Did this and it solved my SSH problem! Thanks! Here is a nice guide on how to configure SSH-Server.
http://www.jonathanmoeller.com/screed/?p=3606
Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 12:14 pm
by Metalliogre
It started refusing my SSH connection again

Re: Nagios 3 and SSH
Posted: Tue Jun 03, 2014 12:17 pm
by tmcdonald
It's been a while since my Ubuntu days, forgot about the "-server" part
Did you change the port like they did in the article? You should probably keep it on port 22, otherwise you will need to edit the Nagios checks to use the new port.
Also, did you open up/disable the firewall?
http://www.howtogeek.com/115116/how-to- ... -firewall/