服务器重做系统后,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删掉,重新连接就可以了。