From a91f5998367fae2018e8cdef09cfedcd98826159 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Tue, 3 Sep 2024 15:34:40 -0500 Subject: [PATCH] removed password auth from ssh for defiant --- hosts/defiant/configuration.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hosts/defiant/configuration.nix b/hosts/defiant/configuration.nix index 05b2f73..0dc7fd1 100644 --- a/hosts/defiant/configuration.nix +++ b/hosts/defiant/configuration.nix @@ -42,11 +42,10 @@ enable = true; ports = [ 22 ]; settings = { - PasswordAuthentication = true; + PasswordAuthentication = false; AllowUsers = [ "leyla" ]; # Allows all users by default. Can be [ "user1" "user2" ] UseDns = true; X11Forwarding = false; - PermitRootLogin = "without-password"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no" }; };