OpenWrt Forum Archive

Topic: Remote Host Identification Has Changed

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

     What should I do in order to get rid of this message ?

     Below command did not resolved my issue.

     vi ~/.ssh/known_hosts


engin@ubuntu:~/Desktop/openwrt/IOT/src$ ssh root@192.168.0.18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:/HzKRcAadyN9Sb85K81FqBUrJfSMiduCUpMxxgOPavY.
Please contact your system administrator.
Add correct host key in /home/engin/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/engin/.ssh/known_hosts:2
  remove with:
  ssh-keygen -f "/home/engin/.ssh/known_hosts" -R 192.168.0.18
RSA host key for 192.168.0.18 has changed and you have requested strict checking.
Host key verification failed.

have a look at /home/engin/.ssh/known_hosts on your Ubuntu machine. line 2 is causing problems as the message says. You can manually remove the line.

Did you try, like it says:
remove with:
  ssh-keygen -f "/home/engin/.ssh/known_hosts" -R 192.168.0.18

or maybe google "ssh disable strict checking", but thats less secure.

Thanks a lot. it worked.

The discussion might have continued from here.