LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh and router, I need help. (https://www.linuxquestions.org/questions/linux-networking-3/ssh-and-router-i-need-help-233354/)

babyboss 09-21-2004 09:45 AM

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.

secesh 09-21-2004 10:01 AM

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.

babyboss 09-21-2004 01:25 PM

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

jbeiter 09-21-2004 01:34 PM

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.

secesh 09-22-2004 11:40 AM

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.


All times are GMT -5. The time now is 03:04 PM.