REMOTE HOST IDENTIFICATION HAS CHANGED

339次阅读
没有评论

ssh 经常用的一个连接,突然出现这个提示:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:WODetdWvKnM/8XqPmddddd/testvhzkPZ/i2IVVmYgNqywP370yI.
Please contact your system administrator.
Add correct host key in /Users/test/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/test/.ssh/known_hosts:18
ECDSA host key for 0.0.0.0 has changed and you have requested strict checking.
Host key verification failed.

通过字面意思,大概是说服务器标签被修改,大部分情况下重装系统之后,再次连接,也会出现这个提示,解决办法也很简单:

ssh-keygen -R 111.111.111.111(你远程服务器的 IP)

加入官方交流QQ群:778957856
post-qrcode
 
clark
版权声明:本站原创文章,由 clark 2022-03-04发表,共计793字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)
验证码