sshkey改变后出错的解决

错误态

ssh 192.168.111.200 出现如下错误

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 RSA key sent by the remote host is
e7:f4:18:2c:8c:d7:90:a7:33:21:b0:3c:05:4d:3c:06.
Please contact your system administrator.
Add correct host key in /usr01/.ssh/known_hosts to get rid of this message.
Offending RSA key in /usr01/.ssh/known_hosts:6
RSA host key for 192.168.111.200 has changed and you have requested strict checking.
Host key verification failed.

解决之道

ssh-keygen -R 192.168.111.200

然后重新连,

[root@xxxxxx-tmp ~]# ssh usr01@192.168.111.200
The authenticity of host '192.168.111.200 (192.168.111.200)' can't be established.
ECDSA key fingerprint is 22:62:57:91:e5:a7:fb:72:d7:27:ab:a2:cf:2b:77:74.
Are you sure you want to continue connecting (yes/no)? yes
原文地址:https://www.cnblogs.com/mousean/p/6024480.html