1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{...}:{ services.fail2ban.enable = true; services.openssh = { enable = true; authorizedKeysInHomedir = false; settings = { PasswordAuthentication = false; PermitRootLogin = "no"; AllowUsers = [ "kassouni" "git" ]; KbdInteractiveAuthentication = false; PubkeyAuthentication = true; }; }; }