Page 1 of 1

winscp connection error after new nagios install

Posted: Wed Mar 14, 2018 6:57 pm
Hey,
we updated nagios and installed a complete new instance, created ssh keys and users and added hosts/services etc.
Now when I try to connect via winscp to add more plugins I get the typical network error: "server unexpectedly closed network connection"

That usually indicated and issue in the ssh cfg I think, but I compared it with the older version 3.1.1 and the now running 3.5.1.

Any way I can correct this?

Thanks a lot

Best

Martin

Re: winscp connection error after new nagios install

Posted: Wed Mar 14, 2018 8:24 pm
by mcapra
I'm assuming both the 3.1.1 and 3.5.1 version of Nagios Core were installed via OS specific packages?

Is the ownership of the underlying folders different between those two versions? That'd be my first guess.

Re: winscp connection error after new nagios install

Posted: Thu Mar 15, 2018 10:58 am
by cdienger
I would also check the/var/log/messages and /var/log/secure while you try to make the connection:

tail -f /var/log/messages
tail -f /var/log/secure

Re: winscp connection error after new nagios install

Posted: Thu Mar 15, 2018 12:29 pm
Thanks a lot

I am getting:

sshd error: could not load host key: /etc/ssh/sshd_rsa_key and dsa_key

Do I need to recreate the ssh keys?

Thanks

Best

Martin

Re: winscp connection error after new nagios install

Posted: Thu Mar 15, 2018 12:56 pm
I think, I got it.

I re-generated ssh keys and a new ssl cert, now I can shh into the box again

thanks

Re: winscp connection error after new nagios install

Posted: Thu Mar 15, 2018 2:52 pm
by scottwilkerson
Glad it's resolved, closing