提示:Address 192.168.*.* maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
是因为DNS服务器把 192.168.x.x 的地址都反向解析成 localhost 。 解决的办法就是,编辑 ssh 客户端的 /etc/hosts 文件,把出问题的IP 地址和主机名加进去,就不会报这样的错了。
解决方案1:
给主机配置hostname /etc/hosts
然后使用hostname ssh连接就可以了
例如:两台主机hostname配置:
192.168.229.134 webservice.fengyun.com
192.168.229.135 sslvpn.fengyun.com
在134上ssh连接135:
解决方法2:
修改 /etc/ssh/ssh_config
vim /etc/ssh/ssh_config
把
GSSAPIAuthentication yes
改为
GSSAPIAuthentication no