aboutsummaryrefslogtreecommitdiff
path: root/hosts/tower/ssh.nix
blob: 46e872bc1452f615a4bc8c71e7764bdf9c59742a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ ... }:
{
  services.openssh = {
    enable = true;
    ports = [
      52222
      22
    ];
    settings = {
      PermitRootLogin = "no";
      PasswordAuthentication = false;
      AllowUsers = [
        "isabella"
      ];
    };
  };

  networking.firewall.interfaces = {
    eno1.allowedTCPPorts = [ 52222 ];
    tailscale0.allowedTCPPorts = [ 22 ];
  };
}