WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
[root@localhost ~]# ssh 172.17.0.135
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:n68rgNbkHuLve0/7STYDiD+oE/g1egasGi2uigu4diU.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:11
RSA host key for 172.17.0.135 has changed and you have requested strict checking.
Host key verification failed.
今天远程ssh远端机器的时候发现了如下提示:怎么都连不上。
解决办法:
ssh会把你每个你访问过计算机的公钥(public key)都记录在/root/.ssh/known_hosts。当下次访问相同计算机时,OpenSSH会核对公钥。如果公钥不同,OpenSSH会发出警告,避免你受到DNS Hijack之类的。
既然找到原因了,那就好解决了,直接编辑
[root@localhost .ssh]# vim /root/.ssh/known_hosts
找到你要链接的那个ip删除掉