pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: [INTERFACES] cant connect
3+ messages / 2 participants
[nested] [flat]

* Re: [INTERFACES] cant connect
@ 1999-04-11 15:38  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Joe Dieckert <dieckert@cabnet.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 1999-04-11 15:38 UTC (permalink / raw)
  To: Joe Dieckert <dieckert@cabnet.net>; +Cc: pgsql-interfaces

Joe Dieckert <dieckert@cabnet.net> writes:
> The backend start okay and we can access the data on the local machine
> runing psql but cannont on another machine on the same net.  We tried
> adding PAM modules and adding the tcp port to the services files.  We
> tried to log in as many different users but it just keeps telling us on
> the remote and local machine that authenication has failed.

Sounds like the pg_hba.conf file on the server machine is not set up
to allow access from anywhere except that same machine.  It has to
contain an entry matching the IP address of the machine you want to
connect from.  See the administrator documentation, or check the
archives of this list --- I recall the same problem being discussed
just a week or two back.

			regards, tom lane



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

* cant connect
@ 1999-04-11 16:58  Joe Dieckert <dieckert@cabnet.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Joe Dieckert @ 1999-04-11 16:58 UTC (permalink / raw)
  To: pgsql-interfaces

We are trying to use psql on RedHat 5.2 to access a database on another
Redhat 5.2 box runing Postgres (started as user postgres:     postmaster
-D /var/lib/pgsql -B 256 -i -d 3 &.)
The backend start okay and we can access the data on the local machine
runing psql but cannont on another machine on the same net.  We tried
adding PAM modules and adding the tcp port to the services files.  We
tried to log in as many different users but it just keeps telling us on
the remote and local machine that authenication has failed.  What could
we be doing wrong?  Any help would be greatly appreciated.

Joe




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

* Re: [INTERFACES] cant connect
@ 1999-04-13 07:35  Joe Dieckert <dieckert@cabnet.net>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Joe Dieckert @ 1999-04-13 07:35 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-interfaces

Thanks!! That took care of it.

Joe

Tom Lane wrote:

> Joe Dieckert <dieckert@cabnet.net> writes:
> > The backend start okay and we can access the data on the local machine
> > runing psql but cannont on another machine on the same net.  We tried
> > adding PAM modules and adding the tcp port to the services files.  We
> > tried to log in as many different users but it just keeps telling us on
> > the remote and local machine that authenication has failed.
>
> Sounds like the pg_hba.conf file on the server machine is not set up
> to allow access from anywhere except that same machine.  It has to
> contain an entry matching the IP address of the machine you want to
> connect from.  See the administrator documentation, or check the
> archives of this list --- I recall the same problem being discussed
> just a week or two back.
>
>                         regards, tom lane




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


end of thread, other threads:[~1999-04-13 07:35 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-04-11 16:58 cant connect Joe Dieckert <dieckert@cabnet.net>
1999-04-11 15:38 ` Tom Lane <tgl@sss.pgh.pa.us>
1999-04-13 07:35   ` Joe Dieckert <dieckert@cabnet.net>

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