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