From 1e6d2216bae131b20ac919e1e145f46e847ae069 Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 25 Aug 2023 19:56:29 +0900 Subject: [PATCH] services.openssh.settings.PasswordAuthentication = false --- nixos/common/services/openssh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/common/services/openssh.nix b/nixos/common/services/openssh.nix index 8aa6030e..baf97dd5 100644 --- a/nixos/common/services/openssh.nix +++ b/nixos/common/services/openssh.nix @@ -6,7 +6,7 @@ settings = { LogLevel = "VERBOSE"; # Used for fail2ban monitoring PermitRootLogin = "no"; - PasswordAuthentication = true; # Set this to false when keys are configured + PasswordAuthentication = false; }; banner = '' --