From 70f9e6f1bdc2bc9902113a3ddad655fe9be24e3d Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 5 Jun 2023 09:41:59 +1000 Subject: [PATCH] openssh: updated from deprecated settings progresses #21 --- profiles/openssh.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/profiles/openssh.nix b/profiles/openssh.nix index d437cb2..9a2389b 100644 --- a/profiles/openssh.nix +++ b/profiles/openssh.nix @@ -7,15 +7,17 @@ }: { services.openssh = { enable = true; # Enable the OpenSSH daemon. - permitRootLogin = "prohibit-password"; - kbdInteractiveAuthentication = false; - passwordAuthentication = false; - openFirewall = true; hostKeys = [ { path = "/etc/ssh/ssh_host_ed25519_key"; type = "ed25519"; } ]; + openFirewall = true; + settings = { + KbdInteractiveAuthentication = false; + PasswordAuthentication = false; + PermitRootLogin = "prohibit-password"; + }; }; }