From b85d671f4977ee7b3a5a7f079d618c5449f86940 Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Mon, 12 Jan 2026 08:56:18 +0200 Subject: SSH client algorithm selection --- home/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/default.nix b/home/default.nix index 61f4e13..87243b0 100644 --- a/home/default.nix +++ b/home/default.nix @@ -488,7 +488,14 @@ in controlMaster = "auto"; controlPersist = "10m"; serverAliveInterval = 1; + serverAliveCountMax = 3; }; + extraConfig = " + HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256 + KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 + MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com + Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr + "; }; }; -- cgit v1.2.3-70-g09d2