Prohibit root login with password when server module is used
This commit is contained in:
parent
d46e871d9e
commit
2b81a311bb
|
@ -12,7 +12,7 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "no";
|
||||
permitRootLogin = lib.mkForce "prohibit-password";
|
||||
passwordAuthentication = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue