From e0c6530d97b12baf9ec7378fc0d58f438e010590 Mon Sep 17 00:00:00 2001 From: Akshay Mankar Date: Sat, 28 Oct 2023 12:01:48 +0200 Subject: [PATCH] Disable Password authentication in SSH --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 612fefe4..ac242f89 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,7 @@ virtualisation.docker.enable = true; services.openssh.enable = true; services.openssh.settings.PermitRootLogin = "prohibit-password"; + services.openssh.settings.PasswordAuthentication = false; }; # NixOS specific configuration