Prohibit root login with password when server module is used

This commit is contained in:
Hendrik Sokolowski 2022-05-06 18:38:55 +02:00
parent d46e871d9e
commit 2b81a311bb

View file

@ -12,7 +12,7 @@ in
config = mkIf cfg.enable {
services.openssh = {
enable = true;
permitRootLogin = "no";
permitRootLogin = lib.mkForce "prohibit-password";
passwordAuthentication = true;
openFirewall = true;
};