forked from pub-solar/os
Prohibit root login with password when server module is used
This commit is contained in:
parent
d46e871d9e
commit
2b81a311bb
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
permitRootLogin = "no";
|
permitRootLogin = lib.mkForce "prohibit-password";
|
||||||
passwordAuthentication = true;
|
passwordAuthentication = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue