does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

用ssh 时,会有这样的提示

$ ssh 192.168.1.156
Address 192.168.1.156 maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

是因为DNS服务器把 192.168.x.x 的地址都反向解析成 localhost ,而DNS服务器不是自己的,不能改。 解决的办法就是,编辑 ssh 客户端的 /etc/hosts 文件,把出问题的IP 地址和主机名加进去,就不会报这样的错了。

posted @ 2011-11-01 11:00  wwh  阅读(709)  评论(0编辑  收藏  举报