LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   SSH port other than 22 (https://www.linuxquestions.org/questions/fedora-35/ssh-port-other-than-22-a-406338/)

piforever 01-21-2006 07:03 PM

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...

gilead 01-21-2006 07:19 PM

In your sshd_config file (most likely in /etc/ssh/sshd_config), uncomment and change the 'Port' line, then restart the SSH daemon.

piforever 01-21-2006 09:24 PM

many thnx for the quick help.....

piforever 01-22-2006 10:20 AM

Is there a way to define multiple ports???

ThnX

gilead 01-22-2006 01:07 PM

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


piforever 01-22-2006 06:36 PM

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....

gilead 01-22-2006 07:05 PM

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


All times are GMT -5. The time now is 02:52 AM.