Some servers run their SSH server on a different port than 22 for a variety of reasons, including security.
To specify a custom port when connecting, use the
-p flag as in the example below:
ssh firstname.lastname@example.org -p 2222
In this example, the client would attempt to connect using port 2222.