SSH登录报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

目录 文章

错误信息:

[root@centos network-scripts]# ssh 10.24.10.91
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:rFgkIYXDdHigjYZxh52W0YI3JzjsU1QvkqcS2Vn/BoI.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:3
ECDSA host key for 10.24.10.91 has changed and you have requested strict checking.
Host key verification failed.

解决办法:

在客户端执行下述指令

vi ~/.ssh/known_hosts

例如我的机子IP地址为:10.24.10.91

则把里面与所要连接IP(10.24.10.91)相关的内容删掉即可.

>>本文为下一朵云的原创文章,转载请附上原文出处链接及本声明
>>原文链接地址:SSH登录报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

暂无评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注