Can I make SSH fail when a port forwarding fails?
Run
ssh -o ExitOnForwardFailure=yes ...
or put
ExitOnForwardFailure yes
into ~/.ssh/config
. See man ssh_config
for details.
Run
ssh -o ExitOnForwardFailure=yes ...
or put
ExitOnForwardFailure yes
into ~/.ssh/config
. See man ssh_config
for details.