summaryrefslogtreecommitdiff
path: root/modules/services/openssh.nix
blob: 8bab2a4bbf536adc66e64147c966a7f5e57777ec (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
{
  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]"
      ];
    };
  };
}