Displaying 1 result from an estimated 1 matches for "ssh_remote_forwarding_port".
Did you mean:
ssh_remote_forwarding_ports
2013 May 15
1
[PATCH] Expose remote forwarding ports as environment variable
Good evening gentlemen,
the attached patch against openssh 6.2p1 exposes remote
forwarding ports to the remote shell:
targethost % ssh -R 1234:localhost:22 controlhost
controlhost % echo $SSH_REMOTE_FORWARDING_PORTS
1234
targethost % ssh -R 0:localhost:22 controlhost
controlhost % echo $SSH_REMOTE_FORWARDING_PORTS
54294
targethost % ssh -R 0:localhost:22 -R 1234:localhost:22 controlhost
controlhost % echo $SSH_REMOTE_FORWARDING_PORTS
59056 1234
Detailled motivation can b...