linux 远程连接ssh提示IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY解决
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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:uHkeKkiLSxAIIGmk89BkPqq2zEfXKsiBdYDF3mwvq6A. Please contact your system administrator. Add correct host key in ~/.ssh/known_hosts to get rid of this message. Offending ECDSA key in ~/.ssh/known_hosts:24 ECDSA host key for 10.87.218.183 has changed and you have requested strict checking. Host key verification failed.
报错信息里,写的很清楚了:
Offending ECDSA key in ~/.ssh/known_hosts:24
到known_hosts文件里删掉错误的主机SHA记录重新连接就ok了。
出现这种状况的原因可能是远端机器有所变化,导致的机器码SHA出现变化,校验不通过~
删除掉known_hosts对应ip的行,就可以了。
文章来自:https://www.cnblogs.com/suanec/p/8979549.html