This should return non-zero $ ssh -f somesite.example.org -L 10143:somesite.example.org:143 -N ; echo $? bind: Address already in use channel_setup_fwd_listener_tcpip: cannot listen to port: 10143 Could not request local forwarding. 0 else scripts cannot detect failure!
Please use the existing ExitOnForwardFailure option
OK. One would have never guessed. By the way bind: Address already in use would be clearer if it said which address: bind: Address 1020304 already in use
Done. The next release will have: bind [127.0.0.1]:1234: Address already in use bind [::1]:1234: Address already in use
Close all resolved bugs after release of OpenSSH 7.7.