Hit a problem on CentOS7.0 that ssh connection timeout & freezing of terminal tab after several seconds, following is the solution.
1) It's most likely the shell which is timing out. Disable the timeout by unsetting TMOUT in your profile. TMOUT is the number of seconds that bash waits for input before terminating. Echo $TMOUT to see if it is set. Add the following to your profile:
unset TMOUT
2) Configure PuTTY to send keepalive packets by going into:
Settings > Connection > Seconds between keepalives = 60
3) Tweak your sshd_config (normally found in /etc/ssh) and add:
TCPKeepAlive yes
ClientAliveInterval 60
Save the file and restart sshd.
Refer: http://unix.stackexchange.com/questions/6105/what-causes-a-ssh-interruption
本文提供了解决 CentOS 7.0 上 ssh 连接超时和终端界面冻结问题的方法,包括禁用 shell 超时、配置 PuTTY 发送心跳包以及调整 sshd_config 文件。
1110

被折叠的 条评论
为什么被折叠?



