LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-21-2006, 07:03 PM   #1
piforever
Member
 
Registered: Dec 2005
Distribution: CentOS 5 - Debian 5
Posts: 112

Rep: Reputation: 15
SSH port other than 22


Is this possible?? Or is it one of those things that can't be change?? I'm asking cuase in case port 22 is blocked in the windows machine so I can not reach my server...

Last edited by piforever; 01-21-2006 at 07:04 PM.
 
Old 01-21-2006, 07:19 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
In your sshd_config file (most likely in /etc/ssh/sshd_config), uncomment and change the 'Port' line, then restart the SSH daemon.
 
Old 01-21-2006, 09:24 PM   #3
piforever
Member
 
Registered: Dec 2005
Distribution: CentOS 5 - Debian 5
Posts: 112

Original Poster
Rep: Reputation: 15
many thnx for the quick help.....
 
Old 01-22-2006, 10:20 AM   #4
piforever
Member
 
Registered: Dec 2005
Distribution: CentOS 5 - Debian 5
Posts: 112

Original Poster
Rep: Reputation: 15
Is there a way to define multiple ports???

ThnX
 
Old 01-22-2006, 01:07 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
It's possible to listen on multiple interfaces and multiple ports. I haven't set it up here, but have a look at http://support.theplanet.com/knowled...b.php?id=10722 - it may be useful. They use stuff like:

Code:
ListenAddress 10.0.0.1:2000
ListenAddress 10.0.0.1:2001
 
Old 01-22-2006, 06:36 PM   #6
piforever
Member
 
Registered: Dec 2005
Distribution: CentOS 5 - Debian 5
Posts: 112

Original Poster
Rep: Reputation: 15
Thnx for the info....the link was great. I also found another solution which is adding a second "Port" line to the config file you mentioned earlier...

so in my config file I have those two lines

Code:
Port 22
Port 4444
I tested both ports and they are working.....


many thnx....
 
Old 01-22-2006, 07:05 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I think I'll try that here as well - just because it looks interesting...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh through port 80? acromi General 7 03-15-2009 04:01 PM
Port 22 SSH open! figfighter Linux - Security 3 07-01-2005 08:14 AM
SSH over port 80 or 21 jeucken Linux - Networking 2 08-12-2004 12:03 PM
SSH to another port? TheRealDeal Linux - Networking 4 06-02-2004 07:39 PM
SSH Port Finlay Linux - Networking 4 06-09-2003 05:00 PM


All times are GMT -5. The time now is 10:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration