By default, the SSH server allows incoming connections on port 22. To enable SSH on a different port, open the /etc/ssh/ssh_config file in a Linux text editor, and set the port to any value between 1024 to 65536.