ssh KeepAlive 设置

windows下putty竟然不会掉线,而linux 的ssh反而掉线,不能忍呀。故如下:

 

1.使用SCREEN,但是一般用不到,如果需要多个Terminal 操作可以使用

2.sudo vim /etc/ssh_config

 末尾加入

 

Host *
    ServerAliveInterval 30
    ServerAliveCountMax 2


[1]http://patrickmylund.com/blog/how-to-keep-alive-ssh-sessions/

                                                                         

 

posted @ 2013-08-27 20:02  Epirus  阅读(2494)  评论(0编辑  收藏  举报