Putty等工具中解决SSH连接超时断开的问题

转自:http://www.putty.ws/putty-chaoshi

1 在 linux下的ssh命令:vim /etc/ssh/ssh_config

  然后找到里面的ServerAliveInterval 参数,如果没有你同样自己加一个就好了。参数意义相同,都是秒数,比如9分钟:

  ServerAliveInterval 540

2 SecureCRT

  设置反空闲,如下图所示

Putty等工具中解决SSH连接超时断开的问题

3 Putty

  启用putty keepalive

  putty -> Connection -> Seconds between keepalives ( 0 to turn off ),默认为0,改为60。