mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
openssh: support prohibit-password for permitRootLogin
See 1dc8d93ce6
I also made it the default.
This commit is contained in:
parent
98a8146428
commit
6891bb1c59
6 changed files with 7 additions and 7 deletions
|
@ -24,7 +24,7 @@ with lib;
|
|||
# Allow root logins only using the SSH key that the user specified
|
||||
# at instance creation time, ping client connections to avoid timeouts
|
||||
services.openssh.enable = true;
|
||||
services.openssh.permitRootLogin = "without-password";
|
||||
services.openssh.permitRootLogin = "prohibit-password";
|
||||
services.openssh.extraConfig = ''
|
||||
ClientAliveInterval 180
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue