TA/Common
[ssh] Keeping SSH session from Firewall
옥탑방람보
2012. 12. 24. 17:23
> 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
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