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 10-03-2005, 11:07 AM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
SSH to a box behind NAT


I want to be able to SSH to my linux boxes at home from anywhere. Problem is, my PCs are behind a NAT router. How do I achieve this?
 
Old 10-03-2005, 11:11 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
When you mention nat router is it a one of those cable/dsl routers from the store or is it a linux machine you built as a firewall?

Brian1
 
Old 10-03-2005, 11:13 AM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
WOW. 4 minute response time!

It is a WRT54G Linksys Wireless Router. I am guessing its One to One, though I am not too familiar with the concept.
 
Old 10-03-2005, 12:37 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
Never configured one of those but when you enter the configuration settings through your web browser there should be an option to port forward and external port. What it amounts to is you will use your external wan port ip to connect to from the outside. When you have say port 22 forward to and internal machine then it will directly to that machine. It is best to have all lan machines set as static IP's.

Hope this helps
Brian
 
Old 10-04-2005, 02:33 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Connecting to the router using a cable (not wireless), you can configure it through the web browser. The IP of the router is 192.168.1.1 by default (the same as the gateway address).

There will be a username/password dialog. The default is no username and "admin" as the password. From the web interface, you can forward port 22 to the ip address of the computer you want assigned to this port.
 
  


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
Understanding SSH (Sun box to Linux box) oswald21 Linux - Newbie 2 07-08-2006 03:06 PM
iptables rules for emule in nat box eantoranz Linux - Networking 3 08-08-2005 10:37 PM
performance issue when running a NAT box ? Menestrel Linux - Networking 1 07-31-2005 07:34 AM
Good Tiny NAT Box Distro? Kaashar Linux - Security 5 01-26-2004 08:41 PM
Mandrake 9.2 or RH 9? which is best for a proxy/cache/NAT box debloxie Linux - Distributions 1 01-16-2004 11:45 AM

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

All times are GMT -5. The time now is 09:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration