services.openssh.ports

Specifies on which ports the SSH daemon listens.

Type
list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
[
  22
]
Declared
<nixpkgs/nixos/modules/services/networking/ssh/sshd.nix>