LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-05-2003, 02:59 PM   #1
weird_guy
LQ Newbie
 
Registered: May 2003
Location: Brazil
Distribution: Red Hat 9 + Fedora
Posts: 22

Rep: Reputation: 15
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?
 
Old 07-06-2003, 11:20 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 07-06-2003, 04:28 PM   #3
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
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.
 
Old 07-06-2003, 06:05 PM   #4
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
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)
 
Old 07-06-2003, 09:42 PM   #5
s3szy
LQ Newbie
 
Registered: Oct 2001
Posts: 6

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

Last edited by s3szy; 07-06-2003 at 09:43 PM.
 
Old 07-13-2003, 09:06 PM   #6
weird_guy
LQ Newbie
 
Registered: May 2003
Location: Brazil
Distribution: Red Hat 9 + Fedora
Posts: 22

Original Poster
Rep: Reputation: 15
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 ...
 
Old 07-13-2003, 09:17 PM   #7
weird_guy
LQ Newbie
 
Registered: May 2003
Location: Brazil
Distribution: Red Hat 9 + Fedora
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
  


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 from outside throough a router alagenchev Linux - Networking 5 01-20-2006 08:18 PM
ssh trhough a router from outside DropSig Linux - Networking 1 07-04-2005 04:07 PM
Got new router, can't ssh in now Chuk Linux - Networking 2 10-16-2004 01:52 AM
ssh and router, I need help. babyboss Linux - Networking 4 09-22-2004 11:40 AM
ssh behind a router The sakkie Linux - Networking 16 07-12-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration