bugzilla-daemon at mindrot.org
2015-Aug-17 06:08 UTC
[Bug 2444] New: ExitOnForwardFailure=yes has no effect
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 localhostConsole 2:> telnet localhost 9999ssh 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.
bugzilla-daemon at mindrot.org
2015-Aug-17 06:10 UTC
[Bug 2444] ExitOnForwardFailure=yes has no effect
https://bugzilla.mindrot.org/show_bug.cgi?id=2444 --- Comment #1 from openssh-bugzilla at dennis.birkholz.biz --- The error seems to be existing longer: http://superuser.com/questions/806875/ssh-port-forwarding-and-remote-bind-failure-exitonforwardfailure-not-working -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2015-Sep-04 03:39 UTC
[Bug 2444] ExitOnForwardFailure=yes has no effect
https://bugzilla.mindrot.org/show_bug.cgi?id=2444 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org, | |dtucker at zip.com.au Assignee|unassigned-bugs at mindrot.org |djm at mindrot.org Attachment #2693| |ok?(dtucker at zip.com.au) Flags| | --- Comment #2 from Damien Miller <djm at mindrot.org> --- Created attachment 2693 --> https://bugzilla.mindrot.org/attachment.cgi?id=2693&action=edit describe what ExitOnForwardFailure actually applies to This is actually intended behaviour - the forwarding was established OK, but the destination server/port was not accepting connections. The manual page is a bit unclear though, so that needs to be fixed. -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2015-Sep-04 03:39 UTC
[Bug 2444] ExitOnForwardFailure=yes has no effect
https://bugzilla.mindrot.org/show_bug.cgi?id=2444 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |2451 Referenced Bugs: https://bugzilla.mindrot.org/show_bug.cgi?id=2451 [Bug 2451] Bugs intended to be fixed in 7.2 -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2015-Sep-04 03:56 UTC
[Bug 2444] ExitOnForwardFailure=yes has no effect
https://bugzilla.mindrot.org/show_bug.cgi?id=2444 Darren Tucker <dtucker at zip.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #2693|ok?(dtucker at zip.com.au) |ok+ Flags| | -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2015-Sep-04 04:48 UTC
[Bug 2444] ExitOnForwardFailure=yes has no effect
https://bugzilla.mindrot.org/show_bug.cgi?id=2444 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2016-Aug-02 00:40 UTC
[Bug 2444] ExitOnForwardFailure=yes has no effect
https://bugzilla.mindrot.org/show_bug.cgi?id=2444 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Damien Miller <djm at mindrot.org> --- Close all resolved bugs after 7.3p1 release -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
Seemingly Similar Threads
- [Bug 3017] New: ExitOnForwardFailure=yes doesn't work for local forwards (-L)
- ExitOnForwardFailure and Protocol 2.0
- [Bug 2255] New: tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
- ProxyCommand and ExitOnForwardFailure = leftover process
- SSH crash on OpenBSD (pledge related?)