How to: Setup Port Forwarding For SSH
Port forwarding will allow you to connect to your SSH server from anywhere, and it is really easy to do.
Administrator access to your router
Step 1: Login to router
Login to your router via a web browser using its IP address (default is 192.168.1.1)
Next you locate where you can setup port forwarding. In my case it is under Applications & Gaming sub tab Single Port Forwarding.
Once located create a custom forward with the following settings:
Internal port: 22
IP address of your SSH server.
Save the settings.
Step 2: Get your external IP address
You can find your external IP address by visiting http://johnklann.com/getmyip.php
*Note: Unless you have a static IP provisioned by your ISP, your external IP address will most likely change often. There are several services that allow you to track the change, and assign a domain name to it (Never had much luck with them). I went with a much more simple approach. View the article here.
Step 3: Creating your first external connection
From computer outside your LAN open your putty client.
Enter your external IP address into the Hosts field and click open.
Submit your review