Bug#387669: forwarded connections disappear
Package: openssh-client
Version: 1:4.3p2-3
Severity: normal
Client: sid openssh-client 1:4.3p2-3
Server: woody ssh server 1:3.4p1-1.woody.3
on client:
ssh -o BatchMode=yes -N -R 2223:localhost:22 -q server
Connects OK, works for some time (I can do "ssh -p 2223 -A -X
localhost" on the server) but after some time of poor network
performance, the server seems to close the listening socket on port
2223: I get:
ssh: connect to address 127.0.0.1 port 2223: Connection refused
Indeed, netstat doesn't show any entry on this port. So I assumed the
connection was broken and gave up.
When I got back to the client however, I've found out that the client
ssh process was still running, moreover the keepalives caused by
"BatchMode=yes" kept on being sent there and back, so the initial
connection to the server was feeling well. It's just that the tunnel has
disappeared.
ls -l /proc/PID/fd on the server process shows just one opened IP socket
(and one UNIX domain socket, probably the X-proxy socket).
Marcin
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-xen-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Versions of packages openssh-client depends on:
ii adduser 3.97 Add and remove users and groups
ii debconf [debconf-2. 1.5.3 Debian configuration management sy
ii dpkg 1.13.22 package maintenance system for Deb
ii libc6 2.3.6.ds1-3 GNU C Library: Shared libraries
ii libcomerr2 1.39-1 common error description library
ii libedit2 2.9.cvs.20050518-2.2 BSD editline and history libraries
ii libkrb53 1.4.4~beta1-1 MIT Kerberos runtime libraries
ii libncurses5 5.5-2 Shared libraries for terminal hand
ii libselinux1 1.30.26-2 SELinux shared libraries
ii libssl0.9.8 0.9.8b-2 SSL shared libraries
ii passwd 1:4.0.18.1-1 change and administer password and
ii zlib1g 1:1.2.3-13 compression library - runtime
openssh-client recommends no packages.
-- no debconf information
Reply to: