备忘 - WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 问题解决

服务器重做系统后,Mac上的Iterm SSH登录报错,信息如下:

ChrisdeMacBook-Pro:~ chris$ ssh root@192.168.100.107
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
SHA256:+kTz3uZba/6kb7NMG5WGOLWySRVzRZHGpVmgSOXEnNg.
Please contact your system administrator.
Add correct host key in /Users/chris/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/chris/.ssh/known_hosts:6
RSA host key for 192.168.100.107 has changed and you have requested strict checking.
Host key verification failed.

仔细观察错误信息,发现这一行:Offending RSA key in /Users/chris/.ssh/known_hosts:6。经过推断,应该是key发生了变化导致的,尝试把Users/chris/.ssh/known_hosts文件中100.107的key删掉,重新连接就可以了。

上一篇:福利来了!!! - PostgreSQL9.5架构图及外存图


下一篇:玩转Windows服务系列——Windows服务启动超时时间