ssh 连接的时候 Host key verification failed

时间:2022-08-09 10:51:57

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
7d:ce:22:8b:89:bc:45:cb:ef:b1:8c:fe:50:b2:da:9c.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 172.XX.100.XXX has changed and you have requested strict checking.
Host key verification failed.

解决方法:
vi /root/.ssh/known_hosts
进入此目录,删除172.XX.100.XXX的相关rsa的信息即可.
或者删除这个文件
cd /root/.ssh/
rm known_hosts