19.9.15

SSH Into your dev box from anywhere, wrt1900

I got this wrt1900 router and found this http://portforward.com/english/routers/port_forwarding/Linksys/WRT1900AC/SSH.htm page about how to set up port forwarding on it for SSH.

NOW I CAN CONTINUE using my mac for everything while ssh'ing into my linux laptop at home from anywhere, anytime. 

I wanted to SSH into by dev boxes at home from anywhere, so that I don't have to worry about taking multiple laptops with me when I, for example, go on a work trip.

... So I looked into a few options, turns out this is the easiest way to do it, is as follows.

First off: The linksyst wrt1900 router has some nice features - in particular - a great user interface for setting up your network.  

1) Log in to linksyssmartwifi.com with your password. Then find out what your machine's IP is..

We will use this in the next screen.  This is the internal network's IP address.  We will have the router forward SSH requests using this.
2) Go to the security screen, and set up forwarding, so that when you ssh into the router's IP, you actually get forwarded to the machine you want to ssh into...

2) Find out your public IP  at http://whatismylocalip.com (i.e. you'll get  number like 73.159.38.11, 112.159.38.12, 82.159.38.32, 73.159.38.6273.159.38.62, 18.159.20.100, etc..).  I'm just clarifying this so you don't screw up and try to ssh into the private network route (192....).

3) Go into a terminal, and ssh into the result of (2), just as if it were any other machine...

THATS IT!

No comments:

Post a Comment