(Episode #39 – CLI Monday: How to Keep Your SSH Sessions Alive)
- Create a file locally
~/.ssh/config
-
Host * ServerAliveInterval 60
- Restart any ssh sessions
$ cat ~/.ssh/config Host * ServerAliveInterval 60 $ chmod 600 ~/.ssh/config $ chown user:group ~/.ssh/config