Connecting SSH on different port than 22

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


10 points

Hi People,

I have to connect to my Debian box using SSH on a port which is different than 22. What do I do?

I am on MAC and I do the following when connecting on port 22:

ssh username@server.com



5 points

You can connect to a port say 2200 as follows:

ssh -p 2200 username@server.com

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.