Operating System - HP-UX
1753912 Members
8513 Online
108810 Solutions
New Discussion юеВ

Trying to connect with ssh and getting error

 
SOLVED
Go to solution
John Ferro
Regular Advisor

Trying to connect with ssh and getting error

Hello,

I have "ia64 hp server BL860c" and Im try to connect to remote host with ssh and getting the following error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@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

********************

Please contact your system administrator.

Add correct host key in /home/nsrproxy/.ssh/known_hosts to get rid of this message.

Offending key in /home/nsrproxy/.ssh/known_hosts:1

RSA host key for nwbccs has changed and you have requested strict checking.

Host key verification failed"

Pls. your help.

I tried to remove file known_hosts under /.ssh but still getting the same error.
4 REPLIES 4
Matti_Kurkela
Honored Contributor
Solution

Re: Trying to connect with ssh and getting error

> Offending key in /home/nsrproxy/.ssh/known_hosts:1

Your SSH client is telling you exactly where the key is: line 1 in file /home/nsrproxy/.ssh/known_hosts.

> I tried to remove file known_hosts under /.ssh but still getting the same error.

"/.ssh"? As in, the .ssh directory for the root user? How is that relevant here?

There can be two sets of keys on each SSH connection. The first set is used for identification of the server side. It is always used.
The second set of keys is optional and can be used instead of a password to authenticate the user.

The host identification key checking happens on the local side of the SSH connection, not on the remote side.
This is different from the authentication keys, although the key file formats are the same in both cases.

MK
MK
John Ferro
Regular Advisor

Re: Trying to connect with ssh and getting error

Thanks for response,

So how i could solve this problem?
Ivan Krastev
Honored Contributor

Re: Trying to connect with ssh and getting error

Just remove 1st line from this file /home/nsrproxy/.ssh/known_hosts

At the next connection it will ask you to accept the new host key.

regards,
ivan
John Ferro
Regular Advisor

Re: Trying to connect with ssh and getting error

Thanks a lot, by your support i solved my problem....

Regards,