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
Created attachment 2455 [details] delay reply to multiplexied stdio forwards until confirmation has been received I think this fixes it.
Comment on attachment 2455 [details] delay reply to multiplexied stdio forwards until confirmation has been received looks like this only affects the mux case.
patch committed - this will be in openssh-6.7. Thanks!
This has been applied and will be in openssh-6.7. Thanks!
Close all bugs left open from 6.6 and 6.7 releases.