蓝色动力网络

 找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 2677|回复: 0

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

[复制链接]
发表于 2012-5-27 19:31:51 | 显示全部楼层 |阅读模式
今天发现以前在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的公钥改变后导致。
只要清除老的公钥信息就可以了。
解决方法:
  1. ssh-keygen -R 123.123.123.123(你远程服务器的IP)
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

蓝色动力网络微信平台
网站管理,业务合作联系邮箱: admin#lansedongli.com    QQ:13412492 限网站业务问题.
网站帐号、密码、密保找回请使用注册邮箱,发送邮件至 password#lansedongli.com ,否则不予受理.
免责声明:本论坛所有文字和图片仅代表其个人观点.
本站某些资料或文章来自于互联网,不代表本站观点,如果侵犯了您的权益,请来信告知,我们会在三天内删除.
为了给大家一个更好的交流场所,请勿在本论坛发表与中华人民共和国法律相抵触的言论,请合作,谢谢!
Copyright © 2007-2019 Corporation Powered by网吧系统 版权所有    转载请注明!
浙ICP备11043737号-1 程序:Discuz! x3.4

湘公网安备 43018102000145号

手机版|Archiver|蓝色动力网络   

快速回复 返回顶部 返回列表