From: Steve Crawford <scrawford@pinpointresearch.com>
To: David.Bear@asu.edu
To: pgsql-admin@postgresql.org
Subject: Re: tunneling through ssh
Date: Wed, 18 Aug 2004 16:21:24 -0700
Message-ID: <200408181621.24097.scrawford@pinpointresearch.com> (raw)
In-Reply-To: <20040818231312.GA18227@asu.edu>
References: <20040818231312.GA18227@asu.edu>
On Wednesday 18 August 2004 4:13 pm, David Bear wrote:
> I'm attempting to run pgsql through a tunnel. I'm using the default
> pg_hba.conf file for now which has the relevant information:
>
> ------------
> local all all
> trust
> host all all 127.0.0.1 255.255.255.255
> trust
> ------------
>
> I assume this means that the back end will bind to 127.0.0.1:5432
> since that seems to be the default port number.
>
> Yet, when trying to come through the tunnel I get this in my logs
> on the 'server' machine - the one running postgres backend.
>
> -----------
> Aug 18 16:00:40 dbsrv1 sshd[41006]: error: connect_to ::1 port
> 5432: Connection refused
> Aug 18 16:00:40 dbsrv1 sshd[41006]: error: connect_to 127.0.0.1
> port 5432: Connection refused
> Aug 18 16:00:40 dbsrv1 sshd[41006]: error: connect_to localhost
> port 5432: failed.
> -----------
>
> Am I missing something obvious?
Is PG set to accept tcp/ip connections? Check postgresql.conf for:
tcpip_socket=true
127.0.0.1 is connecting through tcp/ip, not local domain sockets.
Cheers,
Steve
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: scrawford@pinpointresearch.com, David.Bear@asu.edu
Subject: Re: tunneling through ssh
In-Reply-To: <200408181621.24097.scrawford@pinpointresearch.com>
References: <20040818231312.GA18227@asu.edu> <200408181621.24097.scrawford@pinpointresearch.com>
* 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