[Bug 3133] Dynamically Assigned Ports for DynamicForward and LocalForward

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Apr 24 06:12:25 AEST 2021


https://bugzilla.mindrot.org/show_bug.cgi?id=3133

Norman Rasmussen <norman at rasmussen.co.za> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |norman at rasmussen.co.za

--- Comment #1 from Norman Rasmussen <norman at rasmussen.co.za> ---
+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.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list