jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases 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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC via SSH ? " Watch "JDBC via SSH ? " New topic

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
author & internet detective

Joined: May 26, 2003
Posts: 33132

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?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Scott Johnson
Ranch Hand

Joined: Aug 24, 2005
Posts: 518
You can setup an encrypted tunnel using openssl.
I agree. Here's the link: http://aspose.com/file-tools
subject: JDBC via SSH ?
jQuery in Action, 3rd edition