Page 1 of 1

Remote command execution failed: @@@@@@@@@@@@@@@@@@@@@@@@@@@

Posted: Thu Aug 15, 2019 11:57 am
by trrampaul
Good day,

I have some Linux servers returning this error (it's an inherited problem, apparently it was working before):

Remote command execution failed: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Any ideas on how to rectify? I removed the server from known_hosts etc.

Re: Remote command execution failed: @@@@@@@@@@@@@@@@@@@@@@@

Posted: Thu Aug 15, 2019 12:36 pm
by mbellerue
That is usually the output that SSH gives when the remote system's identity changes. You've removed the server from known_hosts, and that should do it. The next thing to try would be logging into the Nagios server, su - nagios, and then try to ssh to the server you want to monitor. That will get you the full output, and we can troubleshoot from there.

Re: Remote command execution failed: @@@@@@@@@@@@@@@@@@@@@@@

Posted: Thu Aug 15, 2019 1:33 pm
by trrampaul
su - nagios (from nagios server)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b7:72:4c:b6:10:f1:67:fb:49:99:f0:c6:83:76:ce:ec.
Please contact your system administrator.
Add correct host key in /home/nagios/.ssh/known_hosts to get rid of this message.
Offending key in /home/nagios/.ssh/known_hosts:43
RSA host key for 172.20.10.210 has changed and you have requested strict checking.
Host key verification failed.

Re: Remote command execution failed: @@@@@@@@@@@@@@@@@@@@@@@

Posted: Thu Aug 15, 2019 2:35 pm
by mbellerue
Offending key in /home/nagios/.ssh/known_hosts:43
So maybe the host key was in known_hosts twice? It's saying it can find it at line 43. I'd recommend making a backup of the nagios/.ssh/known_hosts file, delete line 43, and try again.