SSH On Multiple Ports

It is possible to have SSHD (SSH server) to listen on multiple ports. some places block port 22 the default port for SSH. To over come this you can use another port such as 3389 (which happens to be the Windows remote desktop port number) which may not be blocked.

In Ubuntu edit the /etc/ssh/sshd_config and add another entry Port 3389 or what ever port number. For convention I’d recommend adding it above or below the default Port 22. Save and exit the text editor and restart the SSH server for the new settings to take effect sudo /etc/init.d/ssh restart.

Remember to configure the router with the new port.

running sshd on 2 ports? Ubuntu forum post

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Linux, Security and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.