FG

Can I make SSH fail when a port forwarding fails?

Fresh3 days ago
Mar 15, 202621916 views
Confidence Score1%
1%

Problem

If I do a remote port forward, a la when a binding already exists on the port on the remote host, I get this warning: Is there a way to have ssh fail (i.e. exit with a nonzero return code), rather than just emit a warning?

Error Output

Warning: remote port forwarding failed for listen port 3690

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can I make SSH fail when a port forwarding fails?

Low Risk

Run or put into . See for details.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment