Server Management - Systems Insight Manager
1833712 Members
1956 Online
110063 Solutions
New Discussion

Re: ssh error on HPSIM server

 
Mark Wolf_2
Advisor

ssh error on HPSIM server

I am trying to use ssh from my SIM server to a Linux server. The error message I am getting is about an offending key in /cygdrive/h/.ssh/know_hosts:5. I can't find this file to fix the problem. I have removed the offending host using the normal tools within HPSIM. I can't seem to get this cleared up.

Yes the server was recently rebuilt. So the error is expected....
3 REPLIES 3
Matthew J Warrick
Frequent Advisor

Re: ssh error on HPSIM server

Remove the lines that have the SIM server's hostname in /etc/ssh/known_hosts and /cygdrive/h/.ssh/know_hosts and then rerun mxagentconfig on the SIM server like this: "mxagentconfig -a -n -u root -p " where is your target computer.

Hope that helps, my Linux is getting rusty lol.
"Did you get that memo?"
Mark Wolf_2
Advisor

Re: ssh error on HPSIM server

Ooops I guess I sould have said I am running HPSIM on Windows 2003. As far as I can see there is no directory with the name cygdrive on the system. The linux server I am trying to connect to does not have this file system either.
Matthew J Warrick
Frequent Advisor

Re: ssh error on HPSIM server

I think you have it backwards. The "offending key" is located on the Linux client system. When you login from a machine via SSH it excahnges keys to verify host identity. Since you rebuilt the SIM server, the Linux client(s) will still have the old key from the SIM server located in their "known_hosts" files unless you remove them manually. Failure to do so means that the Linux host thinks the SIM server is being impersonated and prevents an SSH session.

So... login to the Linux machines and remove all instances of the SIM server's hostname or IP address from all the "known_hosts" files on the system (you will have to search for hidden files as well since they can be located in ".ssh" directories which are hidden. This can be done very quickly using vi if are familiar with it.

Next, run mxagentconfig on the SIM server so that you can add the new SSH key to the Linux clients.

IIRC, the path "/cygdrive/h/.ssh/know_hosts:5" means that the key is located in a user home directory and the offending key is on line 5. And the filename is usually "known_hosts" with an "n". ;)
"Did you get that memo?"