nixos/hosts/proxy/ssh.nix
2021-10-11 08:59:31 +00:00

16 lines
246 B
Nix

{ config, ...}:
{
services = {
fail2ban.enable = true;
openssh = {
permitRootLogin = "prohibit-password";
passwordAuthentication = false;
enable = true;
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
}