about summary refs log tree commit diff
path: root/content/notes/ssh-timeout.md
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2025-02-24 17:18:18 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2025-12-07 23:56:37 +0700
commit4d08cadc4f6e732dcce3213eb87166075a99cd53 (patch)
tree8845efa44e1bf8cebcaed7bde2fc12817f08a849 /content/notes/ssh-timeout.md
parent55297f3b0adcaabb876c18074be73238a4a53619 (diff)
downloadblog-4d08cadc4f6e732dcce3213eb87166075a99cd53.tar.gz
Remove translations
Diffstat (limited to 'content/notes/ssh-timeout.md')
-rw-r--r--content/notes/ssh-timeout.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/content/notes/ssh-timeout.md b/content/notes/ssh-timeout.md
new file mode 100644
index 0000000..fdb53d9
--- /dev/null
+++ b/content/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.