LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SSH to a box behind NAT (https://www.linuxquestions.org/questions/linux-networking-3/ssh-to-a-box-behind-nat-369369/)

mattp 10-03-2005 10:07 AM

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?

Brian1 10-03-2005 10:11 AM

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

mattp 10-03-2005 10:13 AM

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.

Brian1 10-03-2005 11:37 AM

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

jschiwal 10-04-2005 01:33 AM

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.


All times are GMT -5. The time now is 05:25 AM.