ssh_exchange_identification: Connection closed by remote host

时间:2023-03-10 03:58:37
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服务,就可以正常链接了