Centos7.6系統如何保持遠程連接呢?
Centos7.6系統如何保持遠程連接呢?
1.輸入(ru)vi /etc/ssh/sshd_config,按回車鍵(jian)
2.找到 TCPKeepAlive yes把前面(mian)的#去掉

3.找到ClientAliveInterval 參(can)數(shu)去掉前面的#,將(jiang)ClientAliveInterval后面的0改成60

4.按“ESC”鍵輸(shu)入wq按回車(che)鍵保存退出(chu)vi編輯
5.在putty客戶端點擊Connection,在Seconds between keepaliaves設(she)置為60,然(ran)后勾(gou)選(xuan)Enable TCP_keepalives后再進行連接即可


