linux 远程连接ssh提示IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY解决

时间:2018-05-02 16:23:02   收藏:0   阅读:3018
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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的行,就可以了。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!