返回

报错解决 REMOTE HOST IDENTIFICATION HAS CHANGED

发布时间:2023-09-05 03:08:18 173


REMOTE HOST IDENTIFICATION HAS CHANGED

报错

$ ssh root@114.121.43.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ED25519 key sent by the remote host is
SHA256:V6Yv22sNitZoKCoTDCjiT+i7J8v254fj5MLZyi4GtMA.
Please contact your system administrator.
Add correct host key in /Users/ss/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users/ss/.ssh/known_hosts:24
Host key for 114.121.43.3 has changed and you have requested strict checking.
Host key verification failed.

解决

需要把缓存的 hosts 删除就好了

cd $HOME/.ssh/

进入到​​.ssh​​目录,删除掉​​known_hosts​​文件中包含​​要连接的服务器IP行​​即可:

sed -i '/114.121.43.3/d' $HOME/.ssh/known_hosts

说明

请关注 危 ❤ 工中号【进击云原生】,更有 free 资源供您学习

本文由​​ mdnice ​​多平台发布


特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(0)
按点赞数排序
用户头像
精选文章
thumb 中国研究员首次曝光美国国安局顶级后门—“方程式组织”
thumb 俄乌线上战争,网络攻击弥漫着数字硝烟
thumb 从网络安全角度了解俄罗斯入侵乌克兰的相关事件时间线
下一篇
linux curl命令使用(一) 2023-09-05 00:04:38