Configure SSH service on monolith

This commit is contained in:
2024-07-12 13:03:56 -07:00
parent f2e5daa69c
commit 27b9a6c48b

View File

@@ -29,6 +29,9 @@
nettika = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHopty1QG8P+OfGxQ9CV0BI1IRB/q6yITzMZaZ6Zspid nettika"
];
};
};
@@ -55,7 +58,11 @@
'';
};
services.openssh.enable = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
permitRootLogin = "yes";
};
time.timeZone = "America/Los_Angeles";