summaryrefslogtreecommitdiff
path: root/modules/services/openssh.nix
blob: b97094576603912d81bb2366b8260496187706e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  services.openssh = {
    enable = true;
    ports = [ 2222 ];
    openFirewall = true;

    settings = {
      UseDns = false;
      X11Forwarding = false;

      KexAlgorithms = [
        "curve25519-sha256"
        "[email protected]"
        "diffie-hellman-group16-sha512"
        "diffie-hellman-group18-sha512"
        "diffie-hellman-group-exchange-sha256"
        "[email protected]"
      ];

      Macs = [
        "[email protected]"
        "[email protected]"
        "[email protected]"
      ];
    };
  };
}