Re: Accessing PostgreSQL from a remote host

From: Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz>
To: Stéphane Pinel <spinel(at)exenevex(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Accessing PostgreSQL from a remote host
Date: 2003-02-18 21:14:30
Message-ID: 1045602869.4049.13.camel@kant.mcmillan.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sat, 2003-02-15 at 08:30, Stéphane Pinel wrote:
> As a newbie, I would like to know exactly what I have to
> do (and how) (on the server) in order to get a running connection to my
> PostgreSQL database from a remote host (using a GUI
> client).
>
> I'm going to get mad since I've tried everything I could
> read about this topic without any success for hours ;-)
>
> MacOS X 10.2.4
> PostgreSQL 7.3 (Marc Liyanage package)

You need to edit the pg_hba.conf and add a line like:

# TYPE DB USER IP-ADDRESS IP-MASK METHOD

host mydb myuser 192.168.3.77 255.255.255.255 crypt

Replace the IP address you are actually connecting from in place of
192.168.3.77, and widen the netmask if you want access from a network.

The method can be "ident", "trust", "crypt" and "md5".

There is more documentation for this sort of thing here:

http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=client-authentication.html

Regards,
Andrew.
--
---------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267
Survey for nothing with http://survey.net.nz/
---------------------------------------------------------------------

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Andrew McMillan 2003-02-18 21:26:15 Re: Ordering rows in a table
Previous Message Jeff Deroshia 2003-02-18 21:13:59 null value in date field