Putty is a very popular ssh/telnet terminal for windows. It's easy to use, here I'm going to write a bit about its advanced feature, ssh tunnel.

For regular ssh tunneling configuration on Linux see How to setup ssh tunnel

1. Setup regular ssh connection for remote host that you use it as forwarding host(ssh server)

   From left category, chose session, type the ssh server hostname or ip

2. Setup tunnels

   From left category, chose connection --> SSH --> Tunnels, type in local port number, the hostname or ip that you want to connect to and followed by it's port numer(seperated by a colon), then click add

3. Save the session connection, then login

   From left category, chose session, then click save. Then login  as regular ssh login, the tunnel will be crated.

4. Useful example case for VNC ssh tunnel connection

   Suppose you VNC server is on the ssh server, but the port is not open to public

   1. type in the vnc server name in ssh login session

   2. suppose you want to use local port 3300 and VNC port is 5901

      In Tunnels configuration,  type in source port 3300 and destination localhost:5901 , then add

   3. click open, then you will be asked to type in vnc server user/password, then a ssh tunnel is created.

    Equivelent to the command line:

    ssh -L 3300:localhost:5901 <vnc server>



Comments powered by CComment