Re: Connecting via ssh tunnel

Поиск
Список
Период
Сортировка
От Weerts, Jan
Тема Re: Connecting via ssh tunnel
Дата
Msg-id 46C7D0FDF98FDC429E6E57D8DF3CF77B967C@ivsrv03.i-views.de
обсуждение исходный текст
Ответ на Connecting via ssh tunnel  ("ben short" <ben@benshort.co.uk>)
Ответы Re: Connecting via ssh tunnel  ("ben short" <ben@benshort.co.uk>)
Re: Connecting via ssh tunnel  ("Uwe C. Schroeder" <uwe@oss4u.com>)
Список pgsql-general
Hi all!

pgsql-general-owner@postgresql.org wrote:
> On Friday 24 November 2006 12:56, ben short wrote:
>> I have a postgresql server setup on a Solaris 10 box. I can
>> connect to the db via psql from the local machine. What I have
>> been trying to do it connect with pgAdmin from my workstation. I
>> have setup the tunnel correctly, local port 5432 and destination
>> localhost:5432. Everytime I try to connect I get the following
>> message.
>
> I guess the tunnel isn't correct. You connect on the same ports -
> seems wrong to me. I'm using a tunnel like this:
>
> ssh -l <user> -L 5555:localhost:5432 <servername>

actually
  ssh -l USER -L 5432:localhost:5432 SOMEOTHERHOSTTHANLOCALHOST

is ok. the "localhost" part is evaluated on the SOMEOTHERHOST
and dns lookup is done there. I have been bitten by this before.
If SOMEOTHERHOST is the same host, this would obviously not
work, since the ssh tunnel and the postgres server cannot
listen on the same port.

I am not sure if the error message you are seeing is the same
one you would get when a connection is impossible. To me it
looks like a connection was initiated by the server closed
it.

Regards
  Jan

В списке pgsql-general по дате отправления:

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Extract between year *and* month
Следующее
От: "Raymond O'Donnell"
Дата:
Сообщение: Re: starting postgres on windows