Putty解决SSH连接超时断开的问题

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。

猜你喜欢

转载自www.cnblogs.com/enumx/p/12308214.html