From 6815379c718e1262f621f04b64ac5ec60a8706d3 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sat, 24 Feb 2024 18:17:53 +0100 Subject: [PATCH] =?UTF-8?q?ssh=20keepalive=20=F0=9F=87=A9=F0=9F=87=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/desktop/ssh.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/desktop/ssh.nix b/modules/desktop/ssh.nix index 3cb8155..a0c4239 100644 --- a/modules/desktop/ssh.nix +++ b/modules/desktop/ssh.nix @@ -9,6 +9,10 @@ # will reuse the master session's connection rather than initiating a new # one. This is especially useful when using SCP. controlMaster = "yes"; + # ISPs in Denmark prefer the simplicity of CG-NAT and stateful firewalls + # to the mess that is IPv6. Force keepalive packets to avoid sessions + # dying. See https://news.ycombinator.com/item?id=25737611. + serverAliveInterval = 25; matchBlocks = { "git.caspervk.net" = { port = 2222;