diff options
Diffstat (limited to 'modules/software/access/ssh.nix')
| -rw-r--r-- | modules/software/access/ssh.nix | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/modules/software/access/ssh.nix b/modules/software/access/ssh.nix deleted file mode 100644 index 665532f..0000000 --- a/modules/software/access/ssh.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ lib, config, ... }: -{ - programs.ssh.startAgent = false; - security.pam.sshAgentAuth.enable = true; - - services = { - fail2ban.jails.sshd.settings = { - enabled = true; - filter = "sshd[mode=aggressive]"; - port = lib.strings.concatStringsSep "," (map toString config.services.openssh.ports); - }; - - openssh = { - enable = true; - ports = [ 22 ]; - openFirewall = false; - - settings = { - StreamLocalBindUnlink = "yes"; - GatewayPorts = "clientspecified"; - - KexAlgorithms = [ - "curve25519-sha256" - "diffie-hellman-group16-sha512" - "diffie-hellman-group18-sha512" - "diffie-hellman-group-exchange-sha256" - ]; - - Macs = [ - ]; - }; - }; - }; -} |