nixos/hosts/proxy/ssh.nix

16 lines
247 B
Nix
Raw Normal View History

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