From d4782126b6621a77282122185169b19e130843a6 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Tue, 17 Dec 2024 16:16:01 +0100 Subject: [PATCH] updates older post --- .../2024/70-stalled-ssh-connections/index.md | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/content/posts/2024/70-stalled-ssh-connections/index.md b/content/posts/2024/70-stalled-ssh-connections/index.md index 361467c..4dc1116 100644 --- a/content/posts/2024/70-stalled-ssh-connections/index.md +++ b/content/posts/2024/70-stalled-ssh-connections/index.md @@ -5,7 +5,7 @@ summary: > This is how I solved it. The thumbnail was created with Google AI (Imagen 3). date: 2024-10-06T19:30:17+02:00 -lastmod: 2024-12-08T11:12:01+0000 +lastmod: 2024-12-17T15:16:01+0000 categories: - computerstuff tags: @@ -35,6 +35,25 @@ $ ssh -O exit {short hostname} every time -- which is annoying. {{< alert "triangle-exclamation" >}} -**Update on 2024-12-08:** -I'm afraid, but I think this is not yet fully resolved. +**Update on 2024-12-17:** +A few changes to the SSH configuration on client and server have been made. {{< /alert >}} + +It got better, but I still experience the one or other hang. + +I added/modified these entries within `Host *` in +~/.ssh/config on the client: + +```apache +ServerAliveInterval 100 +ServerAliveCountMax 10000 +``` + +and made these changes/additions in /etc/ssh/sshd_config +on the server: + +```apache +ClientAliveInterval 60 +ClientAliveCountMax 10000 +TCPKeepAlive yes +```