by default ensure ssh is enabled and password authentication is disabled
This commit is contained in:
parent
eec6341172
commit
29ee1f98e7
1 changed files with 3 additions and 3 deletions
|
@ -4,14 +4,14 @@ let
|
|||
in
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
startWhenNeeded = true;
|
||||
enable = lib.mkDefault true;
|
||||
ports = ports;
|
||||
openFirewall = true;
|
||||
startWhenNeeded = true;
|
||||
settings = {
|
||||
AllowUsers = [ "tdback" ];
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
PasswordAuthentication = lib.mkDefault false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue