SSH Tunnel Setup and Configuration Guide: Page 2

Posted January 29, 2009

Peter Shaw

(Page 2 of 3)

Step 2: Setting up the client

Once your server is up and running and connected to the Internet, we then turn our attention to the client, for me this was a fairly standard PC running Windows XP. This could however be any OS you choose to use as PuTTY is available for just about every platform available. Most *nix's, in fact, have it available to install in the package manager.

The SSH terminal we will be using in this article is called PuTTY written by Simon Tatham (if you're reading this Simon, thanks for such a wonderful piece of useful software).

Download and install PuTTY SSH, and/or one of its automated tools such as PuTTY Shell or PuTTY Link. You can find all of these at http://www.chiark.greenend.org.uk/~sgtatham/putty/.

Once you have PuTTY, click on the binary for the putty.exe terminal to run it. The reason we run the terminal first, and not one of the automated tools, is because the setup GUI in the terminal program makes configuring these things really easy, the setup is then stored in your system registry and can be used in the other programs in the suite.

On the main PuTTY interface fill in the hostname and port number that your remote SSH server is listening on (remember the port number is the one on your router!), and set the protocol type to SSH.

putty hostname

NOTE: If you are connecting from behind a firewall then you must make sure that the port you setup on your server is open for outbound communication on the system you are connecting from, in this example, your outgoing firewall would have to allow outbound communications on port 9000, if not, then you'll need to change the open port in your remote router to match a port that you can originate traffic on. This was not a concern for me as I was connecting from a home ISP connection within the country.

The next thing to do is to ensure that your profile has a saved name. To do this put a name in the Saved Sessions box, and click the save button. This records the profile in the system registry, so you can then later use the profile with plink or another tool in the PuTTY set.

putty save

Once you've saved the profile, Look in the config section down the left side, and go down to Connection -> SSH -> Tunnels.

putty config

In the tunnels section, the two important fields are the source port and destination.

putty tunnel

The source port box holds the port number you would like to be opened on your local PC, in this scenario (and as I often do) i used the base port, plus 1000 for everything except the Apache web server and webmin. Place your local port number into the source box which for our little exercise this is going to be:

1025 for the smtp port
1110 for the pop3 port
9080 for the proxy port
80 for apache
10000 for webmin

Page 3: Wrapping Up and Endless Possibilities

Page 2 of 3

Previous Page
1 2 3
Next Page

Tags: Linux, server, software, Dell, servers

0 Comments (click to add your comment)
Comment and Contribute


(Maximum characters: 1200). You have characters left.



IT Management Daily
Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that datamation.com may send you Datamation offers via email, phone and text message, as well as email offers about other products and services that Datamation believes may be of interest to you. Datamation will process your information in accordance with the Quinstreet Privacy Policy.