最近一次登录ssh user@host 出现错误提示, 无法连接. 具体错误如下:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:uSDsEFXwWApF3hW8rAw2+0Vbzn0VWQ19g8vD1bT8s/o.
Please contact your system administrator.
Add correct host key in C:\\Users\\adm/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\adm/.ssh/known_hosts:2
RSA host key for 10.0.0.201 has changed and you have requested strict checking.
Host key verification failed.
无法连接到服务器. 看错误提示是指纹验证出现变化.
解决: 果断删除.ssh 目录下的认证文件. 重新连接, 需要重新输入密码即可, 会重新生成新的密认证文件. 连接成功.