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解决的主要内容,如果未能解决你的问题,请参考以下文章

配置ssh远程登录

如何解决Linux下通过root无法远程登录

vscode使用ssh连接Linux机器的问题

Xshell连接虚拟机提示SSH服务器拒绝密码

如何通过ssh工具远程连接linux服务器

SSH客户端无法远程连接其中一台Linux主机,但远程同网段其它主机均可以正常连接,都能ping通。