Displaying 1 result from an estimated 1 matches for "ssh_remote_forward_port_".
Did you mean:
ssh_remote_forward_port_1
2013 Aug 05
2
RemoteForward and dynamically allocated listen port
...w request type. I
imagine that ssh protocol changes are made conservatively, so I don't
know how viable these options are.
Without changing the protocol, we could at least set an environment
variable for each dynamically allocated port, numbered by the order of
the RemoteForward requests, eg. SSH_REMOTE_FORWARD_PORT_1,
SSH_REMOTE_FORWARD_PORT_2, .... I was able to wedge a proof of concept
into session.c:do_setup_env (patch below). It's a hack because there
doesn't seem to be an API to iterate channels outside of channels.c.
Would it be agreeable to export channels and channels_alloc? Also,
struct Cha...