If you are on Linux system and you want connect to server via SSH with different port than 22 (port 26 for example) you can use the following command.
ssh firstname.lastname@example.org -p 26
- Replace server IP with the IP Address or DNS name of your server.
- Change your port number as you have set.
- If you are using custom port SSH then same port must be allowed for outbound, inbound connection on firewall otherwise the connection will not establish