ssh报错“REMOTE HOST IDENTIFICATION HAS CHANGED”的解决方法

在ssh过程中,使用: ssh -l root 136.3.243.233报错,错误信息如下:

[root@cqcis ]# ssh [email protected]:/homehome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 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 the RSA host key has just been changed.The fingerprint for the RSA key sent by the remote host isd0:00:7c:bc:88:5c:dc:de:89:61:44:30:00:60:f9:b2.Please contact your system administrator.Add correct host key in /root/.ssh/known_hosts to get rid of this message.Offending key in /root/.ssh/known_hosts:1RSA host key for 136.3.243.233 has changed and you have requested strict checking.Host key verificati



解决方法:

vi ~/.ssh/known_hosts

进入此配置文件,删除1136.3.243.233的相关rsa的信息即可

rsa信息格式大致如下:

136.3.243.233 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAs7tE1nlC8YUMHkJUmSpFeJCc0ztFQiWGIKlyrnf4KVCz+Ece/yY59QXnVG7b0DWA/wyzlaGRdumWFexX4Y7VE3WunEeXVPMRjF0YZgG5qW6EDXNMEquZzI5k7Jg96VGq+5ZzhtsRhUqXH1aNrMYydRfMUFDXTh+a3jKcoQLx9IiifouUuh5JEelql9w9FRgmOgOqmm3CVbn33mblyHZa0UOa3GDpFGRxFjxyPVLuOD90rJIVc126CxIK3TmsFS0emO7qxpz4mrNG/1xpCqgKxNejBkrlUtxzLxGbwuod3HPX7OB28uk1RdGsXhcZtKsPph3a04i7Y5C5QZ1XDXFzDQ==

你可能感兴趣的:(ssh报错“REMOTE HOST IDENTIFICATION HAS CHANGED”的解决方法)