NixOS-Config/modules/system/services/ssh/default.nix
2024-10-09 03:36:08 -04:00

17 lines
236 B
Nix

{ ... }:
{
imports = [
./fail2ban
];
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PrintLastLog = "no";
PasswordAuthentication = false;
UsePAM = false;
};
};
}