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
|
in
|
||||||
{
|
{
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = lib.mkDefault true;
|
||||||
startWhenNeeded = true;
|
|
||||||
ports = ports;
|
ports = ports;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
startWhenNeeded = true;
|
||||||
settings = {
|
settings = {
|
||||||
AllowUsers = [ "tdback" ];
|
AllowUsers = [ "tdback" ];
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = lib.mkDefault false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue