winscp connection error after new nagios install

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

winscp connection error after new nagios install

Post by martin@boxit.net »

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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: winscp connection error after new nagios install

Post 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.
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: winscp connection error after new nagios install

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

Re: winscp connection error after new nagios install

Post by martin@boxit.net »

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
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

Re: winscp connection error after new nagios install

Post by martin@boxit.net »

I think, I got it.

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

thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: winscp connection error after new nagios install

Post by scottwilkerson »

Glad it's resolved, closing
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked