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