by default ensure ssh is enabled and password authentication is disabled

This commit is contained in:
tdback 2024-11-12 19:28:26 -05:00
parent eec6341172
commit 29ee1f98e7

View file

@ -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;
};
};
}