vim /etc/ssh/sshd_config ClientAliveInterval 30 #每隔30秒发送一次请求给client,然后client响应,从而保持连接 ClientAliveCountMax 3 #发出请求后,客户端没有响应得次数达到3,就自动断开连接
重启ssh:
systemctl restart sshd.service
centos7成功
vim /etc/ssh/sshd_config ClientAliveInterval 30 #每隔30秒发送一次请求给client,然后client响应,从而保持连接 ClientAliveCountMax 3 #发出请求后,客户端没有响应得次数达到3,就自动断开连接
重启ssh:
systemctl restart sshd.service
centos7成功
Google Chrome
Windows 10