Example code of libssh2 being used for port forwarding
Posted
by flxkid
on Stack Overflow
See other posts from Stack Overflow
or by flxkid
Published on 2009-10-16T22:34:53Z
Indexed on
2010/04/06
17:03 UTC
Read the original article
Hit count: 373
I'm looking for an example of how to use libssh2 to setup ssh port forwarding. I've looked at the API, but there is very little in the way of documentation in the area of port forwarding.
For instance, using PuTTY plink, There is the remote port to listen on, but also the local port that traffic should be sent to. Is it the developers responsibility to do this part? Can an example be developed of this? Also, for the opposite, where a remote port is brought to a local port, do I use libssh2_channel_direct_tcpip_ex? What about an example of this? I really need to do this exact thing on a project right now. How hard would it be to develop a couple of samples of this? I'm willing to put up a bounty if need be to get a couple of working examples of this.
© Stack Overflow or respective owner