Resolve SECURECRT Connection Linux timeout after disconnecting

Source: Internet
Author: User

Originating From: http://blog.csdn.net/zljjava/article/details/20285679

1. Start with the client:

2. Start from the server (requires server permissions)

Modify/etc/ssh/sshd_config configuration file Clientaliveinterval 300 (default = 0)
This parameter means that every 5 minutes, the server sends a message to the client to keep the connection
Service sshd Reload in effect

CentOS 5 Remote SSH connection timeout setting

Operating system: CentOS 5.6SSH Version: OPENSSH_4.3P2

Many articles on the web say that the remote SSH connection timeout is in/etc/ssh/sshd_config, using the Clientaliveinterval and clientalivecountmax options, which I originally thought, However, the timeout has not been configured. today configuration, found this is not right, the correct configuration is in the/etc/profile, using the Tmout option to control, such as tmout=300, set the timeout interval of 300 seconds.

Resolve SECURECRT Connection Linux timeout after disconnecting

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.