Solved

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

Posted on 2013-06-04
2
3,558 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 29

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Secure Shell (SSH) is a network protocol for secure data communication, mainly used to administer remote Unix / Linux servers via command line. But it also allows the user to open a secure tunnel between a client and a server where he can send any k…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

830 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