Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Tunneling DBD::mysql connections over SSH without using external programs

by wwinfrey (Acolyte)
on Apr 12, 2013 at 15:52 UTC ( [id://1028401]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Tunneling DBD::mysql connections over SSH without using external programs
in thread Tunneling DBD::mysql connections over SSH without using external programs

I concur, Salva, that this is the approach I need to take. I'm more inclined to use Net::OpenSSH as it seems the most portable (and, as was pointed out by Krambambuli below, all the other modules are wrappers to one degree or another for external binaries). In my response below I distilled the issue down to "How do you make DBI connect with DBD::mysql over Net::OpenSSH tunnels ?" and I suppose that's the crux of the challenge.

Replies are listed 'Best First'.
Re^5: Tunneling DBD::mysql connections over SSH without using external programs
by salva (Canon) on Apr 12, 2013 at 21:16 UTC
    Net::OpenSSH does not work on Windows.

    If you just want to run a tunnel, you could use the native ssh client from your OS on Unix and on Windows use PuTTY's plink which could be distributed with your module. IIRC, it doesn't have any dependency.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1028401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found