From: Tom Lane <tgl@sss.pgh.pa.us>
To: David.Bear@asu.edu
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: hba conf ident sameuser not working
Date: Wed, 15 Feb 2006 21:00:41 -0500
Message-ID: <21927.1140055241@sss.pgh.pa.us> (raw)
In-Reply-To: <20060216003610.GD11620@asu.edu>
References: <20060215031605.GH14507@asu.edu>
<200602151127.36955.peter_e@gmx.net>
<20060216003610.GD11620@asu.edu>
David Bear <David.Bear@asu.edu> writes:
> now, back on teancum that has the tunnel on port 6666, I do this:
> iddwb@teancum:~> psql -p 6666 -h localhost -U tlhowell
> psql: FATAL: Ident authentication failed for user "tlhowell"
> iddwb@teancum:~> psql -p 6666 -h localhost -U iddwb
> psql: FATAL: Ident authentication failed for user "iddwb"
I'm afraid you're kind of stuck on getting that to work. In the cases
that work, psql is executing on the server side of the ssh connection.
Here, you want it to work on the client side. The problem is that the
Postgres server is going to see that TCP connection as originating from
a server-side sshd daemon process, and so ident is quite properly going
to fail unless the requested database username matches whatever sshd is
running as.
You could possibly get it to work if you could get sshd to run the
daemon subprocess as yourself instead of root ... dunno enough about
ssh to know if that's possible.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, David.Bear@asu.edu, peter_e@gmx.net
Subject: Re: hba conf ident sameuser not working
In-Reply-To: <21927.1140055241@sss.pgh.pa.us>
References: <20060215031605.GH14507@asu.edu> <200602151127.36955.peter_e@gmx.net> <20060216003610.GD11620@asu.edu> <21927.1140055241@sss.pgh.pa.us>
* 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