ssh客户端不操作自动断开

vi  /etc/ssh/sshd_config 

 

客户端不操作自动断开设置
TCPKeepAlive yes
ClientAliveInterval 180
ClientAliveCountMax 20

service sshd restart

你可能感兴趣的:(ssh客户端不操作自动断开)