"P Kapat" <kap4lin@gmail.com> writes:
> On Tue, Nov 18, 2008 at 2:59 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> My bet is that you have the Postgres server configured so that it
>> only accepts Unix-socket connections and not local TCP connections
>> (which is what the SSH tunnel will try to connect to). If you do
>> "psql -h localhost" on the remote server, does it work?
> Well, it seems to connect:
Huh. It should work then ... and does work when I try it here.
Are you sure you put the right port numbers in the SSH command
line (eg, 5432 is really the port Postgres is listening to)?
regards, tom lane