git 出现 REMOTE HOST IDENTIFICATION HAS CHANGED解决方法

转自:http://blog.sina.com.cn/s/blog_5e37b6750100bx81.html


在mac os 下使用: ssh -l root 136.3.243.233

报错,错误信息如下:
[root@cqcis ]# ssh -l [email protected]:/home home
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 is
d0: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:1
RSA host key for 136.3.243.233 has changed and you have requested strict checking.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8]

解决方法:

vi ~/.ssh/known_hosts


进入此目录,删除1136.3.243.233的相关rsa的信息即可.

136.3.243.233  ssh-rsa AAAAB3NzaC1yc2EAAAABIwAA AQEAs7tE1nlC8YUMHkJUmSpF eJCc0ztFQiWGIKlyrnf4KVCz +Ece/yY59QXnVG7b0DWA/wyzlaGRdumWFexX4Y7VE3Wun EeXVPMRjF0YZgG5qW6EDXNME quZzI5k7Jg96VGq+5ZzhtsRhUqXH1aNrMYydRfMU FDXTh+a3jKcoQLx9IiifouUuh5JEel ql9w9FRgmOgOqmm3CVbn33mb lyHZa0UOa3GDpFGRxFjxyPVL uOD90rJIVc126CxIK3TmsFS0 emO7qxpz4mrNG/1xpCqgKxNejBkrlUtxzLxGbw uod3HPX7OB28uk1RdGsXhcZt KsPph3a04i7Y5C5QZ1XDXFzD Q==
10.1.2.17 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAA AQEAsI5fLkoQayuhjMLXaE69 VlxA7en/SmxXs+VDjgXLGLLTLdSOxki1cBDzuP m4FefmES4A3X3mfAB8L46rFn PJe45hca4U6uC/IbJMlO8GhrWs+fpIYVdMmOkabBQl8li0J0bcl mKlsRfpnsuSfT/hm5nBUUlmQcoXzGqvoLHRgV7 JESdgvMoxlHzCSGRj62aBtJX ktv5dbh5vCxjeh4jFrn4FrNo 7IkG3fA6NoGBqUs6tENAclxI 8F1b+479ywAqQedy233n2gW+l5v6Ms1uD+1jxxCiHx8OtO1/V7/vWLfEQfEMU323y4zHu4uXFLv 9WB1XGNMgqEBlELSBkNpC4Pw ==

你可能感兴趣的:(PC知识)