SSH connection timeout settings

Source: Internet
Author: User
SSH connection timeout settings (1) for security reasons, no input is made within a certain period of time (the number of seconds is unknown, but it is very short) after the SSH connection to the remote server, the server automatically disconnects. This is troublesome for remote operations, especially when some background operations take a long time... information SSH connection timeout settings (1) for security reasons, no input is made within a certain period of time (the number of seconds is not clear, but it is very short) after SSH is connected to the remote server, the server automatically disconnects. This is troublesome for remote operations, especially when some background operations take a long time, such as uploading and downloading files. Www.2cto.com (2) modify the setting of/etc/ssh/sshd_config to set the SSH connection timeout (for example, 30 minutes) vi/etc/ssh/sshd_config/Client remove the following two lines #, modify as follows: ClientAliveInterval 10 ClientAliveCountMax 180 Note: the value of ClientAliveInterval must be smaller, so that the connection is not automatically disconnected before the ClientAlive check on the server.

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.