diff --git a/modules/ssh.nix b/modules/ssh.nix index b2505f9..371c67d 100644 --- a/modules/ssh.nix +++ b/modules/ssh.nix @@ -1 +1,13 @@ -# TODO: Define OpenSSH settings. +{ ... }: + +{ + services.openssh = { + enable = true; + + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + PermitRootLogin = "no"; + }; + }; +}