From: tony <tony@tgds.net>
To: Szabolcs Andrási <andrasi.szabolcs@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Connect to PostgreSQL server from an ADSL connection
Date: Sun, 01 Jan 2006 20:52:52 +0100
Message-ID: <1136145173.2833.51.camel@hush.localdomain> (raw)
In-Reply-To: <530357980601011105n5389c0di@mail.gmail.com>
References: <530357980601010740j7b80e975s@mail.gmail.com>
<1136131131.2833.41.camel@hush.localdomain>
<530357980601011105n5389c0di@mail.gmail.com>
Le dimanche 01 janvier 2006 à 20:05 +0100, Szabolcs Andrási a écrit :
> > ssh -v -L 5432:localhost:5432 dbuser@your.dyndns.domaine
> >
> > Then connect to your database on localhost.
> Thank you very much for your answer. Sorry to bother you again with
> the same question but unfortunately it is still not clear to me how to
> configure the PostgreSQL server. Could you please be more specific and
> detailed? Let me write an exact situation to make the answer easier:
The postgresql server must also be running SSH server. You use the SSH
client to forward the postgresql port to your local computer. Your
client computer does not need to have a domain name.
> - PostgreSQL is newly installed, so now everything is set to default values.
> - The PostgreSQL server is runing on a computer with a domain name for
> example "my.pgserver.com" and listening on port 5432.
So for you the SSH comand line would be
ssh -v -L 5432:localhost:5432 dbuser@my.pgserver.com
> - A client application is running on this remote computer. This
> application would like to connect to the PostgreSQL server on
> "my.pgserver.com" and fetch some data from a table.
You open your client and point it to localhost:5432
SSH is forwarding the distant 5432 port to your local computer through a
secure tunnel. This is totally transparent for server and client - the
server needs no configuration. You can forward the postgres port to
another port number if you wish (for example you are running a
postgresql server on your local machine too).
Cheers
Tony
--
Tony Grant
www.tgds.net - vente d'ordinateurs mini-itx en ligne
www.tgds.net/epiaix1.html - A fedora Core 4 based live CD for VIA Epia-M
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: tony@tgds.net, andrasi.szabolcs@gmail.com
Subject: Re: Connect to PostgreSQL server from an ADSL connection
In-Reply-To: <1136145173.2833.51.camel@hush.localdomain>
References: <530357980601010740j7b80e975s@mail.gmail.com> <1136131131.2833.41.camel@hush.localdomain> <530357980601011105n5389c0di@mail.gmail.com> <1136145173.2833.51.camel@hush.localdomain>
* 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