bugzilla-daemon at mindrot.org
2014-Jul-15 18:30 UTC
[Bug 2255] New: tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255
Bug ID: 2255
Summary: tunneling with -W does not report non 0 exit codes on
failure even with ExitOnForwardFailure=yes
Product: Portable OpenSSH
Version: 6.6p1
Hardware: amd64
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: bcg62 at drexel.edu
Currently it looks like there is no way to trap unsuccessful port
forwards using ssh -W
Example:
$ ssh -o ExitOnForwardFailure=yes -W localhost:1590 remotehost
$ echo $?
0
1590 is not listening on remotehost and debug output shows:
channel 0: open failed: connect failed: Connection refused
But ssh exits with 0.
Changing ExitOnForwardFailure has no effect.
It should exit(1) like nc does
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Jul-15 18:33 UTC
[Bug 2255] tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255
Brendan Germain <bcg62 at drexel.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bcg62 at drexel.edu
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Jul-15 18:36 UTC
[Bug 2255] tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255
Daniel Aquino <mr.danielaquino at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mr.danielaquino at gmail.com
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Jul-16 05:18 UTC
[Bug 2255] tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2455| |ok?(dtucker at zip.com.au)
Flags| |
CC| |djm at mindrot.org,
| |dtucker at zip.com.au
Status|NEW |ASSIGNED
Assignee|unassigned-bugs at mindrot.org |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Created attachment 2455
--> https://bugzilla.mindrot.org/attachment.cgi?id=2455&action=edit
delay reply to multiplexied stdio forwards until confirmation has been
received
I think this fixes it.
--
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 mindrot.org
2014-Jul-16 05:19 UTC
[Bug 2255] tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |2226
--
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 mindrot.org
2014-Jul-17 02:20 UTC
[Bug 2255] tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2455|ok?(dtucker at zip.com.au) |ok+
Flags| |
--- Comment #2 from Darren Tucker <dtucker at zip.com.au> ---
Comment on attachment 2455
--> https://bugzilla.mindrot.org/attachment.cgi?id=2455
delay reply to multiplexied stdio forwards until confirmation has been
received
looks like this only affects the mux case.
--
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 mindrot.org
2014-Jul-17 07:22 UTC
[Bug 2255] tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255 --- Comment #3 from Damien Miller <djm at mindrot.org> --- patch committed - this will be in openssh-6.7. Thanks! -- 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 mindrot.org
2014-Jul-27 23:44 UTC
[Bug 2255] tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Damien Miller <djm at mindrot.org> ---
This has been applied and will be in openssh-6.7. Thanks!
--
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 mindrot.org
2014-Oct-07 21:01 UTC
[Bug 2255] tunneling with -W does not report non 0 exit codes on failure even with ExitOnForwardFailure=yes
https://bugzilla.mindrot.org/show_bug.cgi?id=2255
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #5 from Damien Miller <djm at mindrot.org> ---
Close all bugs left open from 6.6 and 6.7 releases.
--
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.
Possibly Parallel Threads
- [Bug 2444] New: ExitOnForwardFailure=yes has no effect
- ProxyCommand and ExitOnForwardFailure = leftover process
- [Bug 3017] New: ExitOnForwardFailure=yes doesn't work for local forwards (-L)
- ExitOnForwardFailure and Protocol 2.0
- Exit Codes on Reverse Tunnel bug?