(1) The simplest solution is to let/etc/hosts.allow and/etc/hosts.deny inside all the information is not effective, all write-off, restart the SSH service can be.
However, sometimes after you modify, will still appear/etc/hosts.deny automatic modification, so that you can not log on, you need to check the DenyHosts service.
In the version of the Redhat series, there is a denyhosts service that automatically overwrites the/etc/hosts.deny file, which can be handled simply as follows when confirming that there is no problem with the machine to be logged in:
/etc/init.d/denyhosts stop
(2) However, there is also the case that the number of client connections is too large to report this error. By default, the maximum number of SSH terminal connections is 10. In this case, you need to change the SSH configuration file,
Solution:
1) Modify #maxstartups 10 in/etc/ssh/sshd_config and change it to maxstartups 1000
2) Restart SSH service,/etc/init.d/ssh restart
(1) The simplest solution is to let /etc/hosts.allow and /etc/hosts.deny inside all the information is not effective, all write-off, restart the SSH service can be.
However, sometimes after you modify, will still appear/etc/hosts.deny automatic modification, so that you can not log on, you need to check the denyhosts service.
In the version of the Redhat series, there is a denyhosts service that automatically overwrites the/etc/hosts.deny file, which can be handled simply as follows when confirming that there is no problem with the machine to be logged in:
/etc/init.d/denyhosts stop
(2) However, there is also the case that the number of client connections is too large to report this error . By default, the maximum number of SSH terminal connections is 10. In this case, you need to change the SSH configuration file,
Solution:
1) Modify #maxstartups 10 in/etc/ssh/sshd_config and change it to maxstartups 1000
2) Restart SSH service,/etc/init.d/ssh restart
Ssh_exchange_identification:connection Closed by remote host