LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SSH , RH 9 and router (https://www.linuxquestions.org/questions/linux-networking-3/ssh-rh-9-and-router-70322/)

weird_guy 07-05-2003 02:59 PM

SSH , RH 9 and router
 
I have a little problem in my hands:
I need to allow incoming ssh connections on port 7070 (for example) , 'coz my isp blocks ports below 1024 , and I need to have ssh running on port 22 on my internal network. I tried port fowarding in my linksys router , trying to route external port 7070 to my port 22 , but it didnt work. Do I need to run two sshd (one for each port) or can I simply do port fowarding in my router?
(I need to make this thing work , 'coz I'm setting up a cvs repository to do my university assignments with my classmates)

Any ideas?

david_ross 07-06-2003 11:20 AM

It should work by just forwarding it on your router. On some routers/firewalls you will need to open a port to accept connections as well as forwarding it.

dorian33 07-06-2003 04:28 PM

What about the idea of running sshd directly on port 7070 ?
This way you can do redirection for all LAN traffic (to port 22) at the server box.

Robert0380 07-06-2003 06:05 PM

like dorian said, you can run sshd on port 7070 for external connections, you could also have it run on port 22 as well (it can run on both at the same time)

s3szy 07-06-2003 09:42 PM

only need vi /etc/ssh/sshd_config , change port 22 to 7070 and del '#' , reboot ! ok !

weird_guy 07-13-2003 09:06 PM

Quote:

Originally posted by Robert0380
like dorian said, you can run sshd on port 7070 for external connections, you could also have it run on port 22 as well (it can run on both at the same time)
How can I run it on both ports? I believe that this is the best option available for me.... and I didnt figure how to do it ...

weird_guy 07-13-2003 09:17 PM

nevermind.. just found the answer on another post.. I only had to add
Port 22
Port 7070
to the sshd_config file... thx all you guys for your help


All times are GMT -5. The time now is 07:46 AM.