ssh_exchange_identification: Connection closed by remote host

用服务器内网ip连接同子网服务器的时候显示ssh_exchange_identification: Connection closed by remote host

 

防火墙什么都关闭了,还是显示这个问题。

后来发现是/etc/hosts.allow和/etc/hosts.deny在作怪,运营商服务器装好后,/etc/hosts.deny里面就有好多服务器包含在里面。

在/etc/hosts.allow加入同子网Ip后,重启sshd服务,就可以正常链接了

posted @ 2017-04-25 14:24  mofy  阅读(1567)  评论(0编辑  收藏  举报