Friday, October 12, 2012

Remote ssh login issue

If you have reinstalled Linux or UNIX with OpenSSH, you will get the bellow

error. (or else changes in hostname and ip address)
=======
Error
=======

[root@TESTBED ]# ssh root@192.168.x.x
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
8c:32:d8:2c:94:18:4f:7f:7f:2a:15:60:4d:6f:50:79.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:3
RSA host key for 192.168.x.x has changed and you have requested strict

checking.
Host key verification failed.
lost connection
[root@TESTBED ]#

=====================================

Solution :
Add the remote machine as known host as below.
to known host


[root@TESTBED ]# ssh-keygen -R 192.168.x.x
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
[root@TESTBED ]#


No comments:

Post a Comment