Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Java SSH + Postgres
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Louis Botes  
View profile  
 More options Nov 30 2011, 6:17 am
From: Louis Botes <louis.bo...@evosat.com>
Date: Wed, 30 Nov 2011 13:17:05 +0200
Local: Wed, Nov 30 2011 6:17 am
Subject: Java SSH + Postgres

Hi All,

I have a requirement to connect to a Postgres Database through an SSH
Tunnel.

I have previously done this, but the SSH Tunnel connection was always opened
and maintained by the underlying OS.  This time round however I would like
to control the tunnel directly from Java. Specifically check if it is open,
and if not establish the tunnel then connect to my database.

Loads of libraries out there, but I figured I would ask here first before I
waste time learning lessons some of you may already have figured out.

Any ideas/advice will be much appreciated.

Regards,

--

Louis Botes

Support +27 (0) 83 307 9512
Office     +27 (0) 21 488 3940
Fax          +27 (0) 21 422 0597
Mobile +27 (0) 82 907 0980

www.evosat.com <http://www.evosat.com/>

P Please consider the environment before printing this e-mail


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sebastian  
View profile  
 More options Dec 1 2011, 12:54 am
From: Sebastian <sebbes2...@gmail.com>
Date: Thu, 01 Dec 2011 07:54:07 +0200
Local: Thurs, Dec 1 2011 12:54 am
Subject: Re: [CTJUG Forum] Java SSH + Postgres
Hi,

you might want to look at Jsch (http://www.jcraft.com/jsch/). They have
a couple of examples (http://www.jcraft.com/jsch/examples). An article
describing how to use the JSch lib:
http://www.beanizer.org/site/index.php/en/Articles/Java-ssh-tunneling...

Regards,
Sebastian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »