Debian Bug report logs - #846379
Problem with reverse tunnel between SSH client 5.5p1 and SSH server > 6.4p1

version graph

Package: openssh-server; Maintainer for openssh-server is Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>; Source for openssh-server is src:openssh (PTS, buildd, popcon).

Reported by: "W. Martin Borgert" <debacle@debian.org>

Date: Wed, 30 Nov 2016 19:36:01 UTC

Severity: normal

Tags: upstream

Found in versions openssh/1:7.6p1-2, openssh/1:6.7p1-5+deb8u3, openssh/1:7.4p1-10+deb9u1

Forwarded to https://bugzilla.mindrot.org/show_bug.cgi?id=2649

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>:
Bug#846379; Package openssh-server. (Wed, 30 Nov 2016 19:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to "W. Martin Borgert" <debacle@debian.org>:
New Bug report received and forwarded. Copy sent to Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>. (Wed, 30 Nov 2016 19:36:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "W. Martin Borgert" <debacle@debian.org>
To: submit@bugs.debian.org
Subject: Problem with reverse tunnel between SSH client 5.5p1 and SSH server > 6.4p1
Date: Wed, 30 Nov 2016 20:33:53 +0100
Package: openssh-server
Version: 1:6.7p1-5+deb8u3

I suffer from some change between OpenSSH 6.4 and 6.5, probably
https://bugzilla.mindrot.org/attachment.cgi?id=2344 (fix for bug
https://bugzilla.mindrot.org/show_bug.cgi?id=2147).

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,  
"forwarded-streamlocal@openssh.com") == 0) {
                         /* reserved for future owner/mode info */

Can we have this revert in Debian, please?
Or does it have any problems, i.e. what about bug 2147?




Marked as found in versions openssh/1:7.6p1-2. Request was from "W. Martin Borgert" <debacle@debian.org> to control@bugs.debian.org. (Tue, 17 Oct 2017 14:27:02 GMT) (full text, mbox, link).


Marked as found in versions openssh/1:7.4p1-10+deb9u1. Request was from "W. Martin Borgert" <debacle@debian.org> to control@bugs.debian.org. (Tue, 17 Oct 2017 14:27:03 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://bugzilla.mindrot.org/show_bug.cgi?id=2649'. Request was from "W. Martin Borgert" <debacle@debian.org> to control@bugs.debian.org. (Fri, 17 Nov 2017 16:36:10 GMT) (full text, mbox, link).


Added tag(s) upstream. Request was from "W. Martin Borgert" <debacle@debian.org> to control@bugs.debian.org. (Fri, 17 Nov 2017 16:36:10 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Mar 25 18:45:49 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.