This article will show step by step instructions How to setup tunnelling in Putty . This is extremely useful if a port is not opened over firewall but you can hop to a server with access and from there you can hop to another and so on.. Essentially it forwards port if you have access to atleast one port.
- Create a new SSH session - and save it. And click on load to load the settings. Choose the server and port where you have already got access and firewall works. (eg. ServerA, Port: 22)
- Select Tunnels from the Left Menu, specify the Source Port and Destination: The tunnel is created between the REMOTE UNIX box and your local machine (localhost). So, the source port will be the port on the REMOTE UNIX box to which you want to talk to at a specific port which you can't access (eg Port 37150). And the destination will be your localhost, which will act as the other end your tunnel session
- [ad#ad-3]
- Click Save after selecting the"Session"
- Open the saved session for which you just created the Tunnel and login to it. This is because tunnels are created only when you login successfully . (eg. Access ServerA via port 22)
- To test Connectivity: Open a command prompt and try TELNET connection on the port "C:/> telnet localhost 37150" . If the tunnel is successfully created a telnet connection should establish. Exit out of it.
- Access the URL of your application (or dmgr console) by replacing the IP address of the server with ‘localhost’. From the above example:
http://serverA:37150/ would become http://localhost:37150/