From c51d76aa209d18099370e5566d37ac2ed515c301 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Tue, 22 Oct 2024 18:22:44 +0200 Subject: [PATCH] feat(sshd conf): disable password authentication --- ahrc-pc/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ahrc-pc/configuration.nix b/ahrc-pc/configuration.nix index 0f7879c..0849a12 100644 --- a/ahrc-pc/configuration.nix +++ b/ahrc-pc/configuration.nix @@ -7,7 +7,10 @@ console.keyMap = "us"; - services.openssh.enable = true; + services.openssh = { + enable = true; + settings = { PasswordAuthentication = false; }; + }; environment.systemPackages = with pkgs; [ cryptsetup ];