linux 远程连接ssh提示IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY解决
Posted 苏轶然
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的行,就可以了。
以上是关于linux 远程连接ssh提示IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY解决的主要内容,如果未能解决你的问题,请参考以下文章