Hi *,

On Sat, Feb 19, 2005 at 06:49:38PM -0800, Jean Hollis Weber wrote:
> Christian wrote:
> >OK, I see. "The key values are the same as for the Cygwin tunnel, so no
> >repetition is needed." is wrong. The values should be repeated.
> >
> ># Port: 2401 (remote and local)
> ># Username: tunnel
> ># Remote Hostname: openoffice.org
> ># Local Hostname: localhost
> 
> Er, ok, but where do I put those values?

OK (that's why the doc recommends cygwin ;->>>)

I don't know why PuTTY is mentioned there anyway. Putty offers a
terminal emulation. You don't need the stuff that PuTTY offers - all you
need is the tunnel.

You use PuTTY to create the tunnel, so you can forget about all the
other settings.

> I've looked at the PuTTY Configuration pages, and I don't know where these 
> values are supposed to go. (I'm using PuTTY Release 0.56 btw.) I'm assuming 
> the pages under "Connection" are the most logical places,

right. Start with Step 3 on
http://www.cyberknights.com.au/doc/PuTTY-tunnelling-HOWTO.html

e.g. set "ssh protocol version 2" (mark the optionbox)

> but the field 
> names don't correspond unambiguously to what you've got on the list above, 
> at least not to me. Maybe "Session" for some of them, like Host Name (is 
> that Remove Hostname?) and Port (does 2401 go there?).  Help!

True. you connect to "openoffice.org", but the port is the ssh-port
(when you check the "ssh" box, it should be filled out for you - if not
enter "22")

(Now I realize where the problems are)

> On the "Tunnels" page (under SSH, under Connection), there's a place for 
> Source Port and radio buttons for Local, Remote and Dynamic, as well as 
> some other fields including Destination.

You redirect your local port, so check "local"

Enter the Port that should be forwareded into the box (2401)
The destination is the same as for the ssh-connection (openoffice.org),
the destination-port is the same as the local ones, so enter
"openoffice.org:2401" into the destination-box.

I read in the web that if the destination is the same as the machine you
connect to (the one in the Session-box) you can also specify
"localhost:2401" (maybe this is even necessary - don't know)

> I'm not sure which (if any) of 
> these correspond to the items in your list above, and none of the others 
> correspond unambiguously with fields on this or other pages. Please help!
> 
> I'll cheerfully admit that I'm stupid.

No, you only use the wrong tool :-) - The linked documentation about
Putty sucks.

> And I'm sure it's all blindingly 
> obvious and dead easy once you know the secret, but when writing user 
> documentation, writers must assume that if something can be misunderstood, 
> or not understood, then that will happen.

Admittedly I did not have a look at the PuTTY-documentation before. 

(And I cannot tell why the PuTTY guide is classified as "very good")

To recapitulate:
We need a special guide for PuTTY.

                       |goes over ssh-port 22|
cvs-client <---> putty <=====================> openoffice.org <---> cvs-server
       cvs-port 2401                                       cvs-port 2401

Explanation:
The cvs-client talks to putty (that is listening on the port that it
should forward = Port 2401)

Putty sends all the data it gets form the cvs-client through the tunnel
to openoffice.org (Putty and the OOo-Server communicate using the
ssh-port = Port 22)

The OpenOffice.org-Server then forwards the requests recieved from putty
to the port you specified in the destination (=Port 2401). On OOo a
cvs-server listens to this port and handles the request.

The answer goes the way in the other diection.

The cvs-Server talks to OOo using port 2401, the request is forwarded to
putty over the tunnel, and putty hands over the answer to the
cvs-client.

Hope this clarifies the different settings.

ciao
Christian
-- 
NP: Creed - Never Die

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to