ssh_exchange_identification: Connection closed by remote host
2014-05-23 15:05
435 查看
ssh_exchange_identification: Connection closed by remote host
走了许多弯路。
写解决方法
主要是 /etc/hosts.allow 和 /etc/hosts.deny问题 最好两个都设置一下。
因为有些系统是先load hosts.allow 再 load hosts.allow .有些相反。
hosts.allow:
ALL:ALL:allow sshd sshd1 sshd2:ALL:allow #ssh:0.0.0.0/0.0.0.0 sshd:192.168.1.:allow hosts.deny sshd[2760]:
# you should know that NFS uses portmap!
ALL:ALL EXCEPT 127.0.0.1:DENY to ALL:ALL EXCEPT 127.0.0.1 AND 192.168.1.111:DENY
完成后。重启sshd :
service sshd restart /etc/init.d/sshd restart
如果还不行就查一下syslog
位置在 /var/log/syslog
在那可以看到为什么不行。再改一下。再测试一下。
走了许多弯路。
写解决方法
主要是 /etc/hosts.allow 和 /etc/hosts.deny问题 最好两个都设置一下。
因为有些系统是先load hosts.allow 再 load hosts.allow .有些相反。
hosts.allow:
ALL:ALL:allow sshd sshd1 sshd2:ALL:allow #ssh:0.0.0.0/0.0.0.0 sshd:192.168.1.:allow hosts.deny sshd[2760]:
# you should know that NFS uses portmap!
ALL:ALL EXCEPT 127.0.0.1:DENY to ALL:ALL EXCEPT 127.0.0.1 AND 192.168.1.111:DENY
完成后。重启sshd :
service sshd restart /etc/init.d/sshd restart
如果还不行就查一下syslog
位置在 /var/log/syslog
在那可以看到为什么不行。再改一下。再测试一下。
相关文章推荐
- ssh_exchange_identification: Connection closed by remote host 问题的解决
- 【转载】 ssh_exchange_identification: Connection closed by remote host
- 【Ansible】SSH Error: ssh_exchange_identification: Connection closed by remote host
- ssh问题:ssh_exchange_identification: Connection closed by remote host...
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh问题:ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host 问题的解决 (转)
- ssh/scp:ssh_exchange_identification:Connection closed by remote host的问题
- ssh连接其他主机时候ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh问题:ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host