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