Determine forwarded ports?
Hi. Can you determine the ports that are forwarded during an SSH connection? I'd like to create a script using the randomly forwarded ports in our application, but don't know how to determine that. I can grep and diff nestat -lant | grep -i list, but I'd like just get a clean list of the currently forwarded ports. I'm using OpenSSH_4.3p2.
Thoughts?
Thanks!