mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
sshd.nix: Disable password logins for root by default
This commit is contained in:
parent
a44e575196
commit
b91aa1599c
@ -173,14 +173,13 @@ in
|
||||
};
|
||||
|
||||
permitRootLogin = mkOption {
|
||||
default = "yes";
|
||||
default = "without-password";
|
||||
check = permitRootLoginCheck;
|
||||
description = ''
|
||||
Whether the root user can login using ssh. Valid values are
|
||||
<literal>yes</literal>, <literal>without-password</literal>,
|
||||
<literal>forced-commands-only</literal> or
|
||||
<literal>no</literal>.
|
||||
If without-password doesn't work try <literal>yes</literal>.
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user