Linux中WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!错误解决

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 RSA key sent by the remote host is
SHA256:。。。。。
Please contact your system administrator.
Add correct host key in /Users/Anan/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/Anan/.ssh/known_hosts:1
RSA host key for 服务器IP has changed and you have requested strict checking.
Host key verification failed.

解决办法
客户机终端下输入:ssh-keygen -R 输入服务器的IP
重新连接,出现Are you sure you want to continue connecting (yes/no)? 选择yes即可

终端下链接服务器命令: ssh root@服务器ip

你可能感兴趣的:(linux)