解决openssh TimeOut

SSH Client:
ServerAliveInterval 100

SSH server:
ClientAliveInterval 30
TCPKeepAlive yes
ClientAliveCountMax 99999

sudo /etc/init.d/sshd restart

或 service ssh restart

/etc/profile 里面
TMOUT=1800

原文地址:https://www.cnblogs.com/sprinng/p/6442898.html