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 {
|
permitRootLogin = mkOption {
|
||||||
default = "yes";
|
default = "without-password";
|
||||||
check = permitRootLoginCheck;
|
check = permitRootLoginCheck;
|
||||||
description = ''
|
description = ''
|
||||||
Whether the root user can login using ssh. Valid values are
|
Whether the root user can login using ssh. Valid values are
|
||||||
<literal>yes</literal>, <literal>without-password</literal>,
|
<literal>yes</literal>, <literal>without-password</literal>,
|
||||||
<literal>forced-commands-only</literal> or
|
<literal>forced-commands-only</literal> or
|
||||||
<literal>no</literal>.
|
<literal>no</literal>.
|
||||||
If without-password doesn't work try <literal>yes</literal>.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user