[Bug 3017] New: ExitOnForwardFailure=yes doesn't work for local forwards (-L)

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri May 31 21:21:27 AEST 2019


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

            Bug ID: 3017
           Summary: ExitOnForwardFailure=yes doesn't work for local
                    forwards (-L)
           Product: Portable OpenSSH
           Version: 7.6p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: wiebe at halfgaar.net

Logging in from an Ubuntu 18.04 machine, OpenSSH 7.6p1-4ubuntu0.3, the
option ExitOnForwardFailure doesn't seem to work. I says 'bind: Address
already in use' and I get a shell:

=======
halfgaar@<localmachine>: ~
$ ssh -L 8080:localhost:22 -o ExitOnForwardFailure=yes root at server.com
bind: Address already in use
Linux <remoteserver> 4.9.0-8-686-pae #1 SMP Debian 4.9.144-3
(2019-02-02) i686

The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri May 31 12:39:27 2019 from 84.22.107.110
root@<remoteserver>: ~
#
=======

Using -f also just makes it fork.

It does work properly with reverse tunnels (-R).

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


More information about the openssh-bugs mailing list