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::2c:8c:d7::a7:::b0:3c::4d:3c:.
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:
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 ::::e5:a7:fb::d7::ab:a2:cf:2b::.
Are you sure you want to continue connecting (yes/no)? yes
上一篇:C#用扩展方法进行自动生成添加删除对象转换的功能


下一篇:控制UIlabel 垂直方向对齐方式的 方法