The -R is broken in 2.9p2, fixed in the current CVS tree. -L works
properly. Here is the patch against 2.9p2 (posted to the list some time
back).
diff -u channels.c.orig channels.c
--- channels.c.orig Wed Jun 13 14:18:05 2001
+++ channels.c Thu Aug 2 20:26:25 2001
@@ -773,8 +773,9 @@
rtype = (c->type == SSH_CHANNEL_RPORT_LISTENER) ?
"forwarded-tcpip" : "direct-tcpip";
- nextstate = (c->host_port == 0) ? SSH_CHANNEL_DYNAMIC :
- SSH_CHANNEL_OPENING;
+ nextstate = (c->host_port == 0 &&
+ c->type != SSH_CHANNEL_RPORT_LISTENER) ?
+ SSH_CHANNEL_DYNAMIC : SSH_CHANNEL_OPENING;
addrlen = sizeof(addr);
newsock = accept(c->sock, &addr, &addrlen);
---begin quoted text---> Delivered-To: openssh-unix-dev-list-93873 at shitei.mindrot.org
> From: Peter Kocks <pkocks at portal.com>
> To: "'openssh-unix-dev at mindrot.org'"
<openssh-unix-dev at mindrot.org>
> Subject: Protocol 2 remote port forwarding
> Date: Tue, 25 Sep 2001 17:58:48 -0700
> X-Mailer: Internet Mail Service (5.5.2650.21)
>
> Hi all,
>
> I'm using openssh-2.9p2 on Solaris 2.8. I can get remote port
forwarding to
> work using the -R flag, but only with ssh protocol 1 not ssh protocol 2.
>
> I've read that remote forwarding protocol 2 was not supported in
earlier
> versions of openssh, but I'm wondering if this is still the case.
Jarno
> Huuskonen [Jarno.Huuskonen at uku.fi], posted a patch in 2000 to add
support
> for -R in protocol 2.
>
> Is -R supported in portocol 2 in openssh?
>
> If so, is any special configuation needed?
>
> Thanks!
>
> --PK
---end quoted text---
--
Lee Eakin - leakin at dfw.nostrum.com
Wyszkowski's Second Law:
Anything can be made to work if you fiddle with it long enough.