A quick google search will quickly answer this question, but I’ve found myself asking it a few times lately. Often when I let an SSH session go idle, I’ll end up being disconnected. By adding ServerAliveInterval 60 to ~/.ssh/config I’ve managed to limit this from happening.
There is also a similar server side fix for this. Consult man ssh_config and man sshd_config for more details.
Related posts:
- Remote packet capture Had a need to capture some traffic on the remote...
Related posts brought to you by Yet Another Related Posts Plugin.
