Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.