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.