1
Fork 0

Fail2ban keeps annoying me when debugging ssh stuff sldkjfslkdjfs

This commit is contained in:
prescientmoon 2024-11-09 13:19:49 +01:00
parent 01e4112668
commit 41e635754e
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
2 changed files with 2 additions and 1 deletions

View file

@ -65,7 +65,7 @@ in
}; };
# By default, this will ban failed ssh attempts # By default, this will ban failed ssh attempts
services.fail2ban.enable = true; services.fail2ban.enable = lib.mkDefault true;
# Makes it easy to copy host keys at install time without messing up permissions # Makes it easy to copy host keys at install time without messing up permissions
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [

View file

@ -71,6 +71,7 @@
services.openssh.settings.PermitRootLogin = "yes"; services.openssh.settings.PermitRootLogin = "yes";
users.users.root.openssh.authorizedKeys.keyFiles = users.users.root.openssh.authorizedKeys.keyFiles =
config.users.users.pilot.openssh.authorizedKeys.keyFiles; config.users.users.pilot.openssh.authorizedKeys.keyFiles;
services.fail2ban.enable = false;
# }}} # }}}
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;