reverse mapping checking getaddrinfo for bogon failed – POSSIBLE BREAK-IN ATTEMP

今天做ssh key 登录 报了一个 reverse mapping checking getaddrinfo for bogon failed – POSSIBLE BREAK-IN ATTEMPT! 错误,但不影响登录。可是看着不顺眼,查查资料解决它,

原因:ssh 登录的时候会做一系列安全检查,其中有一项是 主机名与ip地址是否能解析,如果解析不了就会报这个错误。

如果你有dns服务器 ,在服务器上做解析也行。总之,ping主机名必须解析到对应的ip地址,

 

解决方法一:在/etc/hosts 文件加上对方的主机名  ip地址,可以ping通主机名即可。

解决方法二:/etc/ssh/ssh_config   /etc/ssh/sshd_config   修改这两个配置文件

GSSAPIAuthentication yes  改成 GSSAPIAuthentication no

重启ssh,即可。

 

转载自:http://geedooweb.com/reverse-mapping-checking-getaddrinfo-for-bogon-failed-possible-break-in-attempt-error.html

猜你喜欢

转载自bird-to-hawk.iteye.com/blog/2238993