Solved

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

Posted on 2013-06-04
2
3,350 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 500 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 27

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
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 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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now