Skip to content

Commit

Permalink
nixos/ssh: remove fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Oct 25, 2023
1 parent 31f91d3 commit 58cb351
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions nixos/server/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@ in

config = lib.mkIf cfg.enable {
# Enable OpenSSH
services = {
fail2ban.enable = true;
openssh = {
enable = true;
ports = [ 22 2222 ];
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
services.openssh = {
enable = true;
ports = [ 22 2222 ];
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};

Expand Down

0 comments on commit 58cb351

Please sign in to comment.