diff --git a/configuration.nix b/configuration.nix index fa1c3d8..0582173 100644 --- a/configuration.nix +++ b/configuration.nix @@ -103,10 +103,9 @@ enable = true; ports = [ 22 ]; settings = { - PasswordAuthentication = true; + PasswordAuthentication = false; KbdInteractiveAuthentication = false; - # AllowUsers = [ "backup" ]; - # UseDns = true; + AuthenticationMethods = "publickey"; X11Forwarding = false; PermitRootLogin = "no"; };