> vi /etc/ssh/ssh_config    (or  ~/.ssh/config)

Host *
    ServerAliveInterval 60

On Client machine,
The 'ServerAliveInterval 60' indicates that it should send a little bit of data over the connection every 60 seconds. You can avoid disconnection by many firewalls. Available on SSH protocol 2 version only.



Possible on server machine as an another solution,

> vi /etc/ssh/ssh_config

ClientAliveInterval 600
ClientAliveCountMax 3

 

'TA > Common' 카테고리의 다른 글

[linux] vi regular expression  (0) 2012.12.24
[ssh] start SSH server on Ubuntu  (0) 2012.12.24
[linux] Adding a samba user on Ubuntu  (0) 2012.12.24
[linux] umout: device is busy  (0) 2012.12.24
[ssh] Very slow login of SSH on Ubuntu  (0) 2012.12.24
Posted by 옥탑방람보
,