summaryrefslogtreecommitdiff
path: root/config/services/ssh.nix
blob: a5ca93943dc658a48a129439e1a020fba4e604a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let
  ports = [ 8822 ];
in
{
  services.openssh = {
    enable = true;
    allowSFTP = false;
    inherit ports;
    settings = {
      PasswordAuthentication = false;
      PermitRootLogin = "no";
      AllowGroups = [ "wheel" ];
      KbdInteractiveAuthentication = false;
    };
  };

  networking.firewall.allowedTCPPorts = ports;
}