[Bug 2577] New: Port Forwarding on Proxy with ProxyCommand ssh -W does not work / bad file descriptor
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Tue May 31 16:08:18 AEST 2016
https://bugzilla.mindrot.org/show_bug.cgi?id=2577
Bug ID: 2577
Summary: Port Forwarding on Proxy with ProxyCommand ssh -W does
not work / bad file descriptor
Product: Portable OpenSSH
Version: 7.2p1
Hardware: amd64
OS: Linux
Status: NEW
Severity: major
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: jan.stuehler at web.de
Port Forwarding on the proxy does not work. Debug shows "debug1:
getpeername failed: Bad file descriptor". OpenSSH_7.2p2, OpenSSL
1.0.2h-fips 3 May 2016.
Related to bug 2200 ("ssh -W causes "getsockname failed: Bad file
descriptor" errors")?
Reproduction:
~/.ssh/config:
Host jump
HostName my.dynamicdns.com
Port 2222
User user
IdentityFile ~/.ssh/user-jump_ed25519
DynamicForward 1080
Host */remote
ProxyCommand ssh -vvv -W $(dirname %h) jump 2>~/sshpc.log
Host target
HostName target
Port 22
User user
IdentityFile ~/.ssh/user-target_ed25519
ssh target/remote
(check ss -lant4 in second terminal: no listener on port 1080)
(exit ssh session)
cat sshpc.log
[...]
Authenticated to my.dynamicdns.com ([12.34.56.78]:2222).
debug3: ssh_init_stdio_forwarding: router:22
debug1: channel_connect_stdio_fwd router:22
debug1: channel 0: new [stdio-forward]
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: getpeername failed: Bad file descriptor
debug3: send packet: type 90
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug1: Requesting no-more-sessions at openssh.com
debug3: send packet: type 80
debug1: Entering interactive session.
[...]
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list