5kits zhao

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

If you faced 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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:CBrXeEtmY2R6dJNnmsiaEyJ4RvfcRE1+riCBX5/qQiA.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:5
ECDSA host key for host1.okd-testing.com has changed and you have requested strict checking.
Host key verification failed.

here is the solutions

Run the following command on the main host

ssh-keygen -R 192.168.1.123

make sure to change the ip to hostname or ip according to the issue. because the command will remove the cache.

Leave a Reply