pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: Yunush Mulla <mullayunush@yahoo.co.in>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: how to connect remotely?
Date: Sun, 05 Mar 2006 22:20:29 -0800
Message-ID: <440BD4AD.8030904@hogranch.com> (raw)
In-Reply-To: <20060306055256.73686.qmail@web8407.mail.in.yahoo.com>
References: <20060306055256.73686.qmail@web8407.mail.in.yahoo.com>

Yunush Mulla wrote:
> hi.
> how can i get connection to the pg database that lies on othe machine??

to Noel's posting, I'd add you need to make sure the postgres server is 
configured to accept and authenticate network connections from external 
hosts.  this isn't the default.   its controlled by $PGDATA/pg_hba.conf 
on the postgres server.  I usually add the line

host all all 0.0.0.0 0.0.0.0 md5

which says to accept network connections from all IPs and authenticate 
via MD5 encrypted passwords.

	ALTER USER 'username' WITH ENCRYPTED PASSWORD 'password';

if the server is on a public internet connection, and the client is on 
another internet connection, you may wish to use some form of secure 
transport tunneling instead of allowing direct PGSQL connects over TCP. 
  options include ssh tunnels, regular VPNs (OpenVPN is particularlly 
easy to use), and integrated SSL (I do not know how well this is 
supported in pgsql-jdbc)





view thread (3+ messages)

Message-ID: <440BD4AD.8030904@hogranch.com>
Permalink:  ../440BD4AD.8030904@hogranch.com/
Also on:    postgresql.org/message-id/440BD4AD.8030904@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pierce@hogranch.com, mullayunush@yahoo.co.in
  Subject: Re: how to connect remotely?
  In-Reply-To: <440BD4AD.8030904@hogranch.com>
  References: <20060306055256.73686.qmail@web8407.mail.in.yahoo.com> <440BD4AD.8030904@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox