Re: Connect to PostgreSQL server from an ADSL connection

From: tony <tony(at)tgds(dot)net>
To: Szabolcs Andrási <andrasi(dot)szabolcs(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Connect to PostgreSQL server from an ADSL connection
Date: 2006-01-01 15:58:50
Message-ID: 1136131131.2833.41.camel@hush.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Le dimanche 01 janvier 2006 à 16:40 +0100, Szabolcs Andrási a écrit :
> Hi all,
>
> I am writing because I would like to know that how can I connect
> remotely to a PostgreSQL database from an ADSL connection, which has
> different IP address every time when it connects to the Internet. This
> ADSL connection is registered to www.dyndns.org, so its dynamic IP
> address is replaceable with the registered domain name.
> My problem is the changing IP address: I would not like to modify the
> pg_hba.conf file every time when the remote computer's IP address
> changes.

ssh -v -L 5432:localhost:5432 dbuser(at)your(dot)dyndns(dot)domaine

Then connect to your database on localhost.

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Szabolcs Andrási 2006-01-01 19:05:22 Re: Connect to PostgreSQL server from an ADSL connection
Previous Message Szabolcs Andrási 2006-01-01 15:40:48 Connect to PostgreSQL server from an ADSL connection