diff --git a/configuration.nix b/configuration.nix index 7eb015f..c1d61eb 100644 --- a/configuration.nix +++ b/configuration.nix @@ -60,7 +60,12 @@ # List services that you want to enable: # Enable the OpenSSH daemon. - services.openssh.enable = true; + services.openssh = { + enable = true; + settings.PasswordAuthentication = false; + settings.KbdInteractiveAuthentication = false; + settings.PermitRootLogin = "no"; + }; services.cockpit = { enable = true;