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: [email protected]
Reporter: [email protected]
"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.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs