LinuxQuestions.org
Review your favorite Linux distribution.
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 09-21-2004, 10:45 AM   #1
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Rep: Reputation: 15
ssh and router, I need help.


I currently have a linksys wireless router, and I also try to ssh to my linux box from other place. It does not seem I am able to ssh to my linux box from other place when I have router. My distribution is slackware 10.0, and it is newly installed. I haven't changed any code that relates to networking. Please teach me how am I supposed to configure my linux box in order I can ssh to my linux box.
 
Old 09-21-2004, 11:01 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
it's a little vague, but it sounds like you're trying to ssh from outside your network to a
linux box which resides under a linksys router.

to do this you need
1) make note of your external IP.
2) pass your external IP from your cable/dsl modem to your linksys router.
2) pass port 22 on your linksys to your linux box

now you've opened up port 22 (default SSH port) to your linux box from the Internet.
 
Old 09-21-2004, 02:25 PM   #3
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
Hey.. thanks a lot for your helping.. but tell u what.. i am really really a newbie.. i understand everything u told me, but i don't know how to do it. Can you give me some further instructions
 
Old 09-21-2004, 02:34 PM   #4
jbeiter
Member
 
Registered: Jul 2004
Posts: 105

Rep: Reputation: 15
You need to configure your linksys router (usually with your web browser) http://192.168.1.1
(default admin password is, admin). Set up port forwarding to your system on the port you are running sshd on.

You will have to turn off DHCP on your linksys (at least I had to on mine) to enable forwarding.

note: if you run it on port 22, a troupe of unemployed twits from .uk, .tw, and .sg are going to start trying to hack into your system.

Be careful when you open things up on your linksys to your internal network. Check your logs because people will try to break in.
 
Old 09-22-2004, 12:40 PM   #5
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
i've worked with cisco/linksys routers (the new ones) that did not need to disable
dhcp to port-forward, also on linksys, i beleive port forwarding is found
under the heading of applications and gaming.

if you disable dhcp, you need to statically set your entire network below the linksys.

i recommend you leave the rest of your network alone, and only statically set the ip of
your sshd box, and set it outside the range of your dhcp server, but within the
network mask. if default for linksys, try using 192.168.1.45 -- i think the dynamics start
at 100.

i cannot give you a full blown tutorial without knowing your network. i bet if you call
linksys, somebody can explain how to do everything except pass the external IP to the
linksys router. this is done from your dsl/cable modem config page -- contact your
ISP for 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 09:18 PM
ssh trhough a router from outside DropSig Linux - Networking 1 07-04-2005 05:07 PM
Got new router, can't ssh in now Chuk Linux - Networking 2 10-16-2004 02:52 AM
SSH , RH 9 and router weird_guy Linux - Networking 6 07-13-2003 10:17 PM
ssh behind a router The sakkie Linux - Networking 16 07-12-2003 05:48 AM

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

All times are GMT -5. The time now is 09:02 PM.

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