[Bug 2444] New: ExitOnForwardFailure=yes has no effect

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Aug 17 16:08:46 AEST 2015


https://bugzilla.mindrot.org/show_bug.cgi?id=2444

            Bug ID: 2444
           Summary: ExitOnForwardFailure=yes has no effect
           Product: Portable OpenSSH
           Version: 6.9p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: openssh-bugzilla at dennis.birkholz.biz

The option ExitOnForwardFailure is not working, even if the forward
fails.

A port forward to another (non used) port on the local machine should
cause ssh to exit with error on a connection attempt to the bound port:

Console 1:
> ssh -N -o ExitOnForwardFailure=yes -L 9999:localhost:9998 localhost

Console 2:
> telnet localhost 9999

ssh should exist with a return code != 0 but instead "channel 3: open
failed: connect failed: Connection refused" is printed and the ssh
process keeps running.

I used two computers to exclude a problem with my version:
Gentoo with "OpenSSH_6.9p1-hpn14v5, OpenSSL 1.0.1p 9 Jul 2015"
Debian with "OpenSSH_6.7p1 Debian-5, OpenSSL 1.0.1k 8 Jan 2015"

All combinations of both computers with local and remote forwards show
that ExitOnForwardFailure=yes is ignored entirely.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list