#报错:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
51:82:00:1c:7e:6f:ac:ac:de:f1:53:08:1c:7d:55:68.
Please contact your system administrator.
Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /var/root/.ssh/known_hosts:2
RSA host key for 104.131.16.158 has changed and you have requested strict checking.
Host key verification failed.
这种情况一般都是服务器被重置了或者更改系统盘了。
解决办法:
-
如果你之前链接的是用root用户链接的,那就的切换到root用户才能去修改known_hosts
sudo su
如果是自己的账户那就不用切换了。
-
进入此文件
cd /var/root/.ssh/ vim known_hosts
删除 104.131.16.158 的相关rsa的信息即可.