Ssh_exchange_identification:connection Closed by remote host

Source: Internet
Author: User

(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.