Page 2 of 2
Re: Remote command execution failed: Host key verification f
Posted: Wed Dec 03, 2014 1:28 pm
by danoreilly
Same issue.
Re: Remote command execution failed: Host key verification f
Posted: Wed Dec 03, 2014 5:42 pm
by abrist
Can you check the remote system's logs for more info?
Re: Remote command execution failed: Host key verification f
Posted: Thu Dec 04, 2014 11:11 am
by danoreilly
Nothing really obvious. From auth.log:
Dec 3 11:17:15 ubdepot sshd[11205]: Accepted publickey for nagios from 10.18.215.98 port 34782 ssh2: RSA fd:3c:56:ed:a8:76:e1:01:bf:0e:cb:56:04:64:68:61
Dec 3 11:17:15 ubdepot sshd[11205]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Dec 3 11:17:15 ubdepot systemd-logind[504]: Removed session 37.
Dec 3 11:17:15 ubdepot systemd-logind[504]: New session 38 of user nagios.
Dec 3 11:17:16 ubdepot sshd[11295]: Received disconnect from 10.18.215.98: 11: disconnected by user
NOthing really in any other logs. I really need to get this thing going, as it's a POC for possibly doing this enterprise-wide. ANy help gratefully accepted.
Thanks!
Re: Remote command execution failed: Host key verification f
Posted: Thu Dec 04, 2014 11:15 am
by eloyd
The simple answer to your problem is that the host key for the remote machine does not match what your local SSH client thinks it should be when you SSH to the remote host.
Really, the only way this can happen is if you have an old host key, incorrect host key, or if you are using a different host name. So that leads me to this:
When nagios is SSHing to the remote host, is it doing it by name or IP? I'm guessing it's by IP. IP != name, and that's where your problem is stemming from. Try ssh <remote.ip.address> and see if you can create the hostkey, then see if Nagios's ssh works.
Re: Remote command execution failed: Host key verification f
Posted: Thu Dec 04, 2014 4:44 pm
by sreinhardt
Sounds like eloyd is right on top of things as usual. Dan, let us know how connecting both(or at least how you have the hostaddress field) ways works for you and with the check beyond that.
Re: Remote command execution failed: Host key verification f
Posted: Mon Dec 08, 2014 2:50 pm
by danoreilly
Actually, given the potential size of the system space we're looking at, we've decided not to go with the ssh route. Too expensive. I really do appreciate the help on this, thanks very much!
Re: Remote command execution failed: Host key verification f
Posted: Mon Dec 08, 2014 3:03 pm
by eloyd
SSH is free. I do not understand what you mean by "too expensive." Do you mean it requires too many resources? You are free to do what you want but I am just trying to understand what you're saying.
Re: Remote command execution failed: Host key verification f
Posted: Mon Dec 08, 2014 3:06 pm
by tmcdonald
eloyd wrote:Do you mean it requires too many resources?
That was the impression I got.