| From: | Ray Stell <stellr(at)cns(dot)vt(dot)edu> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | ben short <ben(at)benshort(dot)co(dot)uk>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Connecting via ssh tunnel |
| Date: | 2006-11-25 02:21:54 |
| Message-ID: | 20061125022154.GA513@cns.vt.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Fri, Nov 24, 2006 at 04:42:56PM -0500, Tom Lane wrote:
>
> Surely that is not a correct tunnel setup ... you can't have both ends
> being the same port number on the same machine. There Can Be Only One
> process listening on a given port per machine.
I think he is refering the -L option of ssh that specifies that the given
port on the local (client) host is to be forwarded to the given host and
port on the remote side. I do this on a test web server all the time:
-L8080:localhost:8080 If I enter the url localhost:8080 in the browser
it is forwarded on to the remote via the ssh tunnel.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ron Johnson | 2006-11-25 02:49:55 | Re: indexes |
| Previous Message | Ben | 2006-11-25 00:42:11 | Re: indexes |