https://bugzilla.mindrot.org/show_bug.cgi?id=2147
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #8 from [email protected] --- It looks like this change leads to a problem. See Debian bug https://bugs.debian.org/846379 from 2016-11-30: I have an OpenSSH client 1:5.5p1-6+squeeze3 on Debian 6 (Squeeze) building a reverse tunnel with dynamic port to a Jessie server: $ /usr/bin/ssh -t -t -R *:0:localhost:443 user@server somecommand If the server runs OpenSSH up to version 6.4p1-2 ("forwardports" from snaphot.d.o), everything is fine. With any OpenSSH server from 6.5p1-6 to 7.3p1-3, the tunnel gets established, but no data can be transmitted over it. On any activity, the client side shows: WARNING: Server requests forwarding for unknown listen_port 54321 debug1: failure forwarded-tcpip When the client specifies the port (= no dynamic port): $ /usr/bin/ssh -t -t -R *:54321:localhost:443 user@server somecommand everything works fine, independent of the OpenSSH server version. Reverting part of the change above solves the problem: --- openssh-7.3p1.orig/channels.c +++ openssh-7.3p1/channels.c @@ -1458,7 +1458,7 @@ port_open_helper(Channel *c, char *rtype } else { /* listen address, port */ packet_put_cstring(c->path); - packet_put_int(local_port); + packet_put_int(c->listening_port); } if (strcmp(rtype, "[email protected]") == 0) { /* reserved for future owner/mode info */ -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug. _______________________________________________ openssh-bugs mailing list [email protected] https://lists.mindrot.org/mailman/listinfo/openssh-bugs
