summaryrefslogtreecommitdiff
path: root/modules/system/access/ssh.nix
blob: b1fc18780c6e4ae9587b81fbb9014ccfea2a1fe1 (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
{
  programs.ssh.startAgent = false;

  services.openssh = {
    enable = true;
    ports = [ 22 ];
    openFirewall = false;

    settings = {
      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]"
      ];
    };
  };
}