pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how to connect remotely?
3+ messages / 3 participants
[nested] [flat]

* how to connect remotely?
@ 2006-03-06 05:52  Yunush Mulla <mullayunush@yahoo.co.in>
  0 siblings, 2 replies; 3+ messages in thread

From: Yunush Mulla @ 2006-03-06 05:52 UTC (permalink / raw)
  To: pgsql-jdbc

hi.
 how can i get connection to the pg database that lies on othe machine??
 
		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: how to connect remotely?
@ 2006-03-06 06:05  Noel Faux <noel.faux@med.monash.edu.au>
  parent: Yunush Mulla <mullayunush@yahoo.co.in>
  1 sibling, 0 replies; 3+ messages in thread

From: Noel Faux @ 2006-03-06 06:05 UTC (permalink / raw)
  To: Yunush Mulla <mullayunush@yahoo.co.in>; +Cc: pgsql-jdbc

Hi Yunush,

Look at the docs:
http://jdbc.postgresql.org/documentation/81/connect.html

I'm assuming your wishing to connect via java.

Cheers
Noel

Yunush Mulla wrote:
> hi.
> how can i get connection to the pg database that lies on othe machine??
>
> ------------------------------------------------------------------------
> Yahoo! Mail
> Bring photos to life! New PhotoMail 
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com; 
> makes sharing a breeze. 

Attachments:

noel.faux.vcf (text/x-vcard, 258B) download begin:vcard fn:Noel Faux n:Faux;Noel org:Monash University;Biochemistry and Molecular Biology adr:;;;Clayton;Vic;3800;Australia email;internet:noel.faux@med.monash.edu.au tel;work:+61 03 9905 1418 url:http://vbc.med.monash.edu.au/~fauxn version:2.1 end:vcard
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: how to connect remotely?
@ 2006-03-06 06:20  John R Pierce <pierce@hogranch.com>
  parent: Yunush Mulla <mullayunush@yahoo.co.in>
  1 sibling, 0 replies; 3+ messages in thread

From: John R Pierce @ 2006-03-06 06:20 UTC (permalink / raw)
  To: Yunush Mulla <mullayunush@yahoo.co.in>; +Cc: pgsql-jdbc

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)





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2006-03-06 06:20 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-06 05:52 how to connect remotely? Yunush Mulla <mullayunush@yahoo.co.in>
2006-03-06 06:05 ` Noel Faux <noel.faux@med.monash.edu.au>
2006-03-06 06:20 ` John R Pierce <pierce@hogranch.com>

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