SSH Timeouts

Revision as of 14:37, 9 January 2020 by Steve410 (talk | contribs) (Created page with " Due to the various ssh programs people use to connect to servers, their configuration processes differ, so we cannot tell you how to set up your specific ssh client program...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Due to the various ssh programs people use to connect to servers, their configuration processes differ, so we cannot tell you how to set up your specific ssh client program.

However, if you use OpenSSH to connect to a Linux system , you should add the following three lines do your ~/.ssh/config file.

Host *
ClientAliveInterval 20
ClientAliveCountMax 5


NOTE: these lines will apply to every system you connect to. You'd have to use a more specific Host line in order tosingle out just the CS Linux systems.

Using tmux Or screen As An Alternative

One thing many people do for long-running programs is to run them inside a tmux or screen session. That allows the programs to continue even if the SSH session is disconnected.

If you do this, make sure you do come back to check on your programs! Sometimes, people forget about their running programs and leave them, unnecessarily using up computing resources that should be available for other people using our services.

You can learn more about tmux here: https://tmux.github.io/


Linux Clients