Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to do command line tunneling for multi-hops with putty

Posted on 2013-06-04
2
Medium Priority
?
4,360 Views
Last Modified: 2013-06-05
Our database server is not accessible directly. You have to SSH into a login server and then SSH into the db server. I have been using putty as my ssh client to create single tunnels so I can admin databases but in this case, I need to tunnel and then tunnel again. I am not well versed on the command line syntax of SSH tunneling.

What I want is to create a tunnel through putty

15432:localhost15432 which pipes to a tunnel on the db server 15432:localhost:5432 to I can use a GUI admin tool on windows to admin a linux PSQL install over two hops via SSH.

Please provide step by and command line examples. Thanks (This is on CentOS if that matters)
0
Comment
Question by:skione
2 Comments
 
LVL 7

Accepted Solution

by:
expert1010 earned 2000 total points
ID: 39219703
Hi,

I usually don't just give a url to read but this one has solved the problem with nice and short writing to it and should have cred for it. Solution uses "plink" that comes with putty.

http://stackoverflow.com/questions/3653788/how-can-i-connect-to-oracle-db-through-ssh-tunnel-chain-double-tunnel-server-i
0
 
LVL 31

Expert Comment

by:serialband
ID: 39219704
There's a detailed description at superuser.com:

http://superuser.com/questions/96489/ssh-tunnel-via-multiple-hops
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question