Modify the/etc/ssh/sshd_config file, remove the comments of ClientAliveInterval0 and ClientAliveCountMax3, and change the value of 0 corresponding to ClientAliveInterval to 60. ClientAliveInterval specifies the time interval between the server and the client, the default value is 0. clientAliveInterval60 indicates modifying the/etc/ssh/sshd_config file every minute, removing the comments of ClientAliveInterval 0 and ClientAliveCountMax 3, and changing the value of 0 corresponding to ClientAliveInterval to 60, clientAliveInterval specifies the time interval for the server to request messages from the client. the default value is 0 and no message is sent. clientAliveInterval 60 indicates that the request is sent once every minute, and then the client responds, so that the persistent connection is maintained. clientAliveCountMax. use the default value of 3. clientAliveCountMax indicates that after the server sends a request, the client will be automatically disconnected if no response is received by the client. normally, the client does not respond.
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.