diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2025-03-17 15:28:12 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2025-03-17 15:28:12 +0700 |
commit | 0204c774bb9748aa14b359fc5353a1e02fe9713e (patch) | |
tree | 12bf30bef06f8de5ba1a530bfdb1ed5ad49628c4 /content/sw-notes/ssh-timeout.md | |
parent | 1315358300c30347bee3ba7e9cf3b8caab32989b (diff) | |
download | blog-0204c774bb9748aa14b359fc5353a1e02fe9713e.tar.gz |
Add note about SSH timeout prevention
Diffstat (limited to 'content/sw-notes/ssh-timeout.md')
-rw-r--r-- | content/sw-notes/ssh-timeout.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/content/sw-notes/ssh-timeout.md b/content/sw-notes/ssh-timeout.md new file mode 100644 index 0000000..fdb53d9 --- /dev/null +++ b/content/sw-notes/ssh-timeout.md @@ -0,0 +1,20 @@ +--- +title: "How to prevent SSH timeout from hanging your terminal" +date: 2025-03-17 +draft: true +lang: en +categories: [ blog ] +tags: [] +translationKey: "ssh-timeout" +--- + +Sometimes, I open an SSH session and then forget about it. When I get back to it, it hangs indefinitely, without a way to close it other than closing the terminal. + +To avoid this, add this to the client config: + +```sshconfig +Host * + ServerAliveInterval 100 +``` + +If you're disconnected from the SSH server, you'll get this message `Timeout, server example.com not responding.` and the connection is terminated. |