Proxy using SSH Tunnel on Windows

This article is an instruction of how to use Proxy Using SSH Tunnel on a Windows machine. The mechanism is similar as the one in Proxy Using SSH Tunnel with “Proxy listening to localhost port only”.

Download PuTTY

PuTTY is the software we use here for port forwarding. Please download it following the links in Open Source and Portable SSH, SCP, SFTP and VNC Clients for Windows to Remote Control Linux.

Configure PuTTY and create a SSH tunnel

First, input the username and host name as in the following figure. We use “zma@example.com” at port 22 as the example. You can input the host only and PuTTY will ask for the username.

Putty-host.png

Second, set the dynamic port forwarding as in the following figure. Here, we use the port 8080 as the local proxy port.

Putty-port-forwarding.png

After clicking “add”, you should see the configuration as in the following figure.

Putty-tunnel.png

Last, click the “Open” button to connect to the SSH server. PuTTY will ask you for the password. After PuTTY successfully connects to the server, the SSH tunnel is ready.

You can also save your configurations as a session by going back to the “Session” window and saving the session before the last step so that your configurations can be reused and you need not to set them each time.

Configure your programs to use the proxy

Now, you can configure your programs on Windows, such as Internet Explorer and Chrome to use the socks proxy:

localhost:8080

One example configuration for Internet Explorer (Chrome also uses it) is in the following figure.

Windows-proxy.png

About Eric Zhiqiang Ma

Eric Zhiqiang Ma is interested in system software for cloud computing, virtualization of large-scale distributed systems and etc. Also find Eric on Facebook, Twitter, LinkedIn and Google+. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Click to subscribe to Fclose.com Posts by Email if you have not.