services.openssh.ports

NixOS option

Specifies on which ports the SSH daemon listens.

type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
[
  22
]
declared in: nixos/modules/services/networking/ssh/sshd.nixView source on NixOS/nixpkgs →