风一样的男孩 发表于 2012-5-27 19:31:51

解决mac os连接SSH提示WARNING: POSSIBLE DNS SPOOFING

今天发现以前在mac的终端下面使用ssh user@localhost输入密码就可以连接到远程的SSH服务器,今天连接的时候老是提示如下错误:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@The RSA host key for usa.itxbo.com has changed,and the key for the corresponding IP address 184.82.185.XXhas a different value. This could either mean thatDNS SPOOFING is happening or the IP address for the hostand its host key have changed at the same time.Offending key for IP in /Users/apple/.ssh/known_hosts:2@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    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 is7e:be:86:21:9c:ec:79:90:c3:b3:8c:0b:16:07:f8:f0.Please contact your system administrator.Add correct host key in /Users/apple/.ssh/known_hosts to get rid of this message.Offending key in /Users/apple/.ssh/known_hosts:6RSA host key for usa.itxbo.com has changed and you have requested strict checking.Host key verification failed.
后来查了下资料 才发现是ssh server的公钥改变后导致。
只要清除老的公钥信息就可以了。
解决方法:
ssh-keygen -R 123.123.123.123(你远程服务器的IP)
页: [1]
查看完整版本: 解决mac os连接SSH提示WARNING: POSSIBLE DNS SPOOFING