服务器重做系统后,Mac上的Iterm SSH登录报错,信息如下:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is
SHA256:eYAH1cXK9XQaM6L3g4wSrA0faZXIsSkVke0MOGH+yBs.
Please contact your system administrator.
Add correct host key in /Users/chao/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/chao/.ssh/known_hosts:11
ECDSA host key for xx.xx.54.213 has changed and you have requested strict checking.
Host key verification failed.
发现
Offending ECDSA key in /Users/chao/.ssh/known_hosts:11
ECDSA host key for xx.xx.54.213 has changed and you have requested strict checking.
这是因为key发生了变化,我们把/Users/chao/.ssh/known_hosts的54.213删掉,再次重新连接就好了