ssh登陆提示 REMOTE HOST IDENTIFICATION HAS CHANGED

Posted v5captain

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh登陆提示 REMOTE HOST IDENTIFICATION HAS CHANGED相关的知识,希望对你有一定的参考价值。

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

MAC/Linux
vi ~/.ssh/known_hosts

Windows
C:Users用户登陆名.sshknown_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

重新登陆即可

以上是关于ssh登陆提示 REMOTE HOST IDENTIFICATION HAS CHANGED的主要内容,如果未能解决你的问题,请参考以下文章

centos/redhat 7 配置ssh免密登陆

SSH不能连接并提示REMOTE HOST IDENTIFICATION HAS CHANGED

ssh 远程链接时出现错误提示:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

mac终端下ssh虚拟机中的linux提示WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

xtrabackup备份

ssh远程执行命令的符号转义问题