ssh登陆提示 REMOTE HOST IDENTIFICATION HAS CHANGED

大憨熊 提交于 2020-04-04 09:19:39

找到known_hosts文件把里面相应的主机那行删除即可

MAC/Linux
vi ~/.ssh/known_hosts

Windows
C:\Users\用户登陆名\.ssh\known_hosts

报错信息:

➜  ssh root@mongo.top
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:JqlKtQzSrgYOb5Jm0BcNSAoyPjvz57srOKOfbUgvpeY.
Please contact your system administrator.
Add correct host key in /Users/zhan/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/zhan/.ssh/known_hosts:3
ECDSA host key for mongo.top has changed and you have requested strict checking.
Host key verification failed.
➜ vi /Users/zhan/.ssh/known_hosts

重新登陆即可

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!