第一步:SSH指令输入:vi /etc/ssh/sshd_config 然后回车、
第二步:按下键,一直找到最后这里,你会看到倒数第二十行左右有这么一句话:ClientAliveInterval 0
第三步:修改数字0为60
第二步:按下键,一直找到最后这里,你会看到倒数第二十行左右有这么一句话:ClientAliveInterval 0
第三步:修改数字0为60
第四步:按下esc,按下ctrl+Q,输入wq,回车保存即可!
- Start Putty
- Load your connection settings if you have them saved
- Click on “Connection”
- On the section that says "Sending of null packets to keep session active", Changed it to 5 seconds. 300 seconds may be better if network outages are your problem, read below for details.