Tuesday, June 10, 2008

Keep alive SSH session

SSH sessions time out normally if you leave them open for a few minutes. You can fix this by configuring SSH to send keep alive packets from time to time. To do this, add the following line:

ServerAliveInterval 5
in

/etc/ssh/ssh_config

No comments: