| Summary: | Dynamically Assigned Ports for DynamicForward and LocalForward | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Chris <cmirchandani> |
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | NEW --- | ||
| Severity: | enhancement | CC: | norman |
| Priority: | P5 | ||
| Version: | 8.2p1 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Chris
2020-03-10 03:19:49 AEDT
+1. RemoteForward has had the ability to dynamically allocate the listening port since bz#1003, but LocalForward doesn't currently support it. I'd like to be able to do something like: $ ssh -MNf remote $ port=$(ssh -O forward -L 0:localhost:1234 remote) $ client localhost:$port without having to do a "localport=$(( 32000 + $RANDOM )); ssh -L $localport:localhost:1234 && break" loop, or something similar. |