SSH Tunneling with Putty

 Tunneling


Requirements: A System with Putty s/w.
Port Tunneling: 
Launch the putty, Different categories will be listed on the left side, click on Connection > SSH > Tunnels. Before this load the saved session so that the changes we are going to do will be saved under that session.



Under Add new forwarded port:, enter the following information:
Source port: [port on local machine]  eg:8080
Destination: [hostname of xxx machine]:[port on xx machine] eg:10.0.0.224:7805
Click Add.

In the below shown figure, It would look like this if I wanted to forward port 7805 on the xx  web server to 8080 on my local machine:






Clicking Add will add it to the list of forwarded ports:



After this go to session click on save so that the forwarded ports will be save under the selected session.

Connect using putty
After setting up the port tunnel, select Session from the category list on the left side.
Enter 172.29.4.113 in the Host Name (or IP Address) field or select from the saved sessions and click the Open button at the bottom right.






Use your xxx user name and password when prompted to login and your port tunnel will be setup.

Utilizing the Port Tunnel:
Now that the port is tunneled, you can connect to it using localhost:8080 where [port forwarded] is the local port you chose earlier.
In our previous example we forwarded port 7805 on 10.0.0.224:7805 to localhost:8080. For example our URL is http://10.0.0.224:7805/Services?wsdl, now we can open up a web browser and browse to http://localhost:8080/Services?wsdl to see it:

Comments

Popular posts from this blog

SinglePass Terms of Service

Jasper Report Viruatization

JasperReports Tutorial