From 5852644ee3f4ff6dedaaf18c1687831c78b6ccaf Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Tue, 27 Aug 2024 22:49:26 +0200 Subject: [PATCH] ecdsa-sha2-nistp256 host key --- nixos/configuration.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 288d133..498a5c4 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -218,6 +218,22 @@ in services.openssh = { enable = true; + hostKeys = [ + { + bits = 4096; + path = "/etc/ssh/ssh_host_rsa_key"; + type = "rsa"; + } + { + # P256 + path = "/etc/ssh/ssh_host_ecdsa_key"; + type = "ecdsa"; + } + { + path = "/etc/ssh/ssh_host_ed25519_key"; + type = "ed25519"; + } + ]; settings.PermitRootLogin = "no"; settings.PasswordAuthentication = false; };