SSH on macOS
Configuring and Using OpenSSH on macOS
Last updated
Configuring and Using OpenSSH on macOS
Last updated
The /private/etc/services file on macOS contains the default port mappings for many services, including ssh. SSH ports can be changed by duplicating and commenting out the original Port 22 lines, replacing port 22 with your choice.
The default entries are: