aspose file tools*
The moose likes JDBC and the fly likes JDBC via SSH ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC via SSH ? " Watch "JDBC via SSH ? " New topic
Author

JDBC via SSH ?

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi : Is it possible to use connect to a remote database
via jdbc using ssh ? If so, how ? Im only familiar with
the url/user/password jdbc configuration parameters - what can
be done to tell the driver to use an ssh connection ?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30353
    
150

Jay,
I haven't done this, but I would guess the database driver would need to support it. Since the driver is actually creating the connections to the remote db, it would have to provide some mechansim.

Have you looked at your database vendor's drivers or third party commercial drivers yet for this feature?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Scott Johnson
Ranch Hand

Joined: Aug 24, 2005
Posts: 518
You can setup an encrypted tunnel using openssl.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDBC via SSH ?