解决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

posted @ 2017-02-25 21:25  Earic  阅读(216)  评论(0编辑  收藏  举报