1 在 linux下的ssh命令:vim /etc/ssh/ssh_config
然后找到里面的ServerAliveInterval 參數,如果沒有你同樣自己加一個就好了。參數意義相同,都是秒數,比如9分鍾:
ServerAliveInterval 540
putty中解決SSH連接超時斷開的兩種方法
2 Putty
啟用putty keepalive
putty -> Connection -> Seconds between keepalives ( 0 to turn off ),默認為0,改為60。
