[Bug 2336] New: Expose dynamic port for -R 0:... via environment
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sat Jan 10 06:45:11 AEDT 2015
https://bugzilla.mindrot.org/show_bug.cgi?id=2336
Bug ID: 2336
Summary: Expose dynamic port for -R 0:... via environment
Product: Portable OpenSSH
Version: 6.7p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: sshd
Assignee: unassigned-bugs at mindrot.org
Reporter: josh at joshtriplett.org
"ssh -R 0:example.org:port" will forward a dynamically allocated port
on the server to example.org:port from the client. The dynamically
allocated port gets printed; however, as far as I can tell there's no
way to access it programmatically from the server. I'd like to have it
exposed via an environment variable on the server (for instance,
SSH_FORWARDED_PORTS), which would allow programs run on the server to
know and use the dynamic port.
If the client set up multiple dynamic port forwards, the environment
variable would contain a space-separated list of port numbers, in the
same order as the requests on the ssh command line.
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list