nixos/hosts/proxy/ssh.nix

16 lines
246 B
Nix
Raw Normal View History

2021-10-11 09:59:31 +01:00
{ config, ...}:
{
services = {
fail2ban.enable = true;
openssh = {
permitRootLogin = "prohibit-password";
passwordAuthentication = false;
enable = true;
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
}