nixos-configuration/nixosModules/openssh.nix
2026-01-03 18:44:59 +01:00

11 lines
227 B
Nix

{
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
}