bugzilla-daemon at bugzilla.mindrot.org
2020-Mar-09 16:19 UTC
[Bug 3133] New: Dynamically Assigned Ports for DynamicForward and LocalForward
https://bugzilla.mindrot.org/show_bug.cgi?id=3133
Bug ID: 3133
Summary: Dynamically Assigned Ports for DynamicForward and
LocalForward
Product: Portable OpenSSH
Version: 8.2p1
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: cmirchandani at msn.com
The RemoteForward option allows a port to be dynamically assigned if 0
is entered as the port number. It would be helpful if the ssh client
could do the same for DynamicForwards and LocalForwards.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23 20:12 UTC
[Bug 3133] Dynamically Assigned Ports for DynamicForward and LocalForward
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.
bugzilla-daemon at mindrot.org
2024-Sep-17 18:59 UTC
[Bug 3133] Dynamically Assigned Ports for DynamicForward and LocalForward
https://bugzilla.mindrot.org/show_bug.cgi?id=3133
LaurenceF <laurence at the4thplatform.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |laurence at the4thplatform.co.
| |uk
--- Comment #2 from LaurenceF <laurence at the4thplatform.co.uk> ---
I have been thinking about requesting something similar however I've
realised because the local tunnel port is only valid while the SSH
command is running to have a dynamically assigned local port from the
Free pool you will need to write it to stdout in a parseable line and
also to a local file and / or on windows a user registry key. This
would then allow another application to pick up the Local TCP port
number and use it.
My suggestion was going to be if the local port number specified in the
is actually an Alphanumeric string rather than a purely numeric string
then this alphanumeric means assign a dynamic port port and use the
string as used in the file name / registry key name that will contain
the number of the Local TCP port number.
--
You are receiving this mail because:
You are watching the assignee of the bug.
Reasonably Related Threads
- [Bug 1077] Descriptions for "ssh -D" and DynamicForward should mention they can specify "bind_address" optionally
- Can't get LocalForward to work when using ControlPath
- RFE: DynamicForward on ~C commandline and via ControlMaster
- sshd 4.2p1 LocalForward interface binding
- [Bug 2562] New: CanonicalizeHostname causes duplicate LocalForward attempts