SSH connection count setting & timeout setting

Source: Internet
Author: User

VI/usr/ssh/sshd_config

Change maxstartup to the set upper limit.

Then restart the SSH service by/usr/init. d/sshd restart.

Modify timeout settings:

Two other common parameters of sshd_config:

Clientaliveinterval indicates how long it takes to send a message to the client to ensure that the connection is still in progress. The default value is 0, indicating that no message is sent, regardless of whether the client can respond.

There is also a clientalivecountmax used with clientaliveinterval. This parameter indicates the number of messages sent to the client. If no response is received for so many times, the server will take the initiative to disconnect the connection. The default value is 3.

For example, if clientaliveinterval = 15 and clientalivecountmax = 3, it will be sent once in 15 seconds, once in 30 seconds, and once in 45 seconds. If all three failed, the link will be recalled.

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.