Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th July 2010, 22:57
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 478
Thanks: 78
Thanked 39 Times in 33 Posts
Default Change ssh to listen on two ports

Is it possible to set ssh listen on two ports?

I want to have the standard port listening as usual as this is used by rsync etc, but also to have a secondary port listening for other connections. This is because I have two servers sitting behind a portforwarding router and I want to set a second port to forward to the backup server so I can ssh both remotely.

At the moment I ssh the main one... and then ssh the internal ip from that shell!!...which is a bit cumbersome.
Reply With Quote
Sponsored Links
  #2  
Old 15th July 2010, 23:15
damir damir is offline
Senior Member
 
Join Date: Jun 2006
Posts: 375
Thanks: 11
Thanked 51 Times in 42 Posts
Default

SSH can listen on multiple ports. Just add additional ports in sshd_config like this:

Port 22
Port 8888

restart sshd daemon and you are good to go.
Reply With Quote
The Following User Says Thank You to damir For This Useful Post:
Toucan (16th July 2010)
  #3  
Old 16th July 2010, 01:01
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 478
Thanks: 78
Thanked 39 Times in 33 Posts
Default Solved

Thanks, worked a treat.
Reply With Quote
  #4  
Old 16th July 2010, 09:24
damir damir is offline
Senior Member
 
Join Date: Jun 2006
Posts: 375
Thanks: 11
Thanked 51 Times in 42 Posts
 
Default

^ Awesome
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 Security mnzava Installation/Configuration 8 8th March 2010 11:00
Spamassassin not working hairydog2 General 7 12th July 2008 21:15
Virtual Users and Domains with Postfix ... (FC5) remstedt HOWTO-Related Questions 23 13th December 2006 13:56
Postfix POP request approx 30 sec (Mozilla...) dreamed Server Operation 3 16th February 2006 00:03
pop3 login stefanr Installation/Configuration 10 2nd January 2006 10:08


All times are GMT +2. The time now is 20:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.