Raghaw Shukla wrote:
> Can anybody let me know how to execute some command overa forwarded port.
Same way you would do it using any other SSH client.
> I am able to forward a port with one tunnel in between .I want to
> execute a commmand over a system which on tunnel ie remote PC.Is it
> possible in LIBSSH2.
Of course. You create a new session for the system where the tunnel
ends and your program must be able to handle both sessions at once.
> Also it is possible to to create multiple tunnels using LIBSSH2 and do
> file transfer from my local PC to remote PC with one SSH server machine
> in between.
Sure, same as above.
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2015-07-14