Resolves an issue with automatic disconnection of SSH link server timeouts

Source: Internet
Author: User

For security, SSH's default connection time-out is short; it's often just a matter of being disconnected; You can actually change the time-out.

Sample environment:

Server: centos6.5

1:[[email protected]/]cp/etc/ssh/sshd_config /etc/ssh/sshd_config.bak //Develop a backup configuration item Good habit

2:[[email protected]/]vim/etc/ssh/sshd_config

Delete the comment # number 110 lines Clientaliveinterval 0 and change to Clientaliveinterval 5

Delete 111 lines of Lientalivecountmax 3 before the comment # number and change to Clientalivecountmax 180

3:[[email protected]/]service sshd reload;

[Email protected]/]/etc/init.d/sshd restart;


Restart the SSH service;

This article for Bai Jun Remote original article, reprinted without contact with me, but please specify from Bai Jun remote blog baijunyao.com


Resolves an issue with automatic disconnection of SSH link server timeouts

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.