Using PuTTY under Windows to create an SSH tunnel to your NetManager

What is SSH tunnelling?

There are many occasions in which it is useful to access resources and services on your corporate or school network remotely. Usually a firewall is configured which will stop free access from the whole Internet to your network. A NetManager provides secure firewalling by default meaning that all services are protected from access by the outside world. You may open up access to individual services as you see fit. To connect to a service on your NetManager, you need to configure your client (e.g. web-browser, email client) to use the external IP address of your NetManager. This approach has a number of drawbacks:

SSH tunnelling allows you to create an encrypted connection between your local machine (e.g. your home PC) and the NetManager at the remote site. Over this single connection, you can run multiple other connections (e.g. web browsing, email). You configure your SSH client software (PuTTY in these instructions) on your local machine to listen for incoming connections on specified port numbers. Connections to any configured ports will be sent across the SSH tunnel to the NetManager. At the far end of the tunnel the NetManager then forwards the requests onto specified machines and port numbers. Both the local and remote ends of the connection are specified in your SSH client software, i.e. there is no configuration required on the NetManager.

Figure 1 below demonstrates the difference between opening up your firewall and accessing protocols directly as opposed to creating an SSH tunnel to do the same thing. The diagram is using the NetManager's web server as an example.

Figure 1: Example of a standard connection as opposed to a connection using SSH.

Configuring an SSH tunnel using PuTTY for Windows

Figure 2: Screen shot of initial PuTTY window

Figure 3: PuTTY tunnelling configuration page