echo "ClientAliveInterval 60" >> /etc/ssh/sshd_config
echo "ClientAliveCountMax 1" >> /etc/ssh/sshd_config
重启SSH服务
service sshd restart
然后退出,重装进入就不会断开了.
echo "ClientAliveInterval 60" >> /etc/ssh/sshd_config
echo "ClientAliveCountMax 1" >> /etc/ssh/sshd_config
重启SSH服务
service sshd restart
然后退出,重装进入就不会断开了.