Subject: Re: Executing command over forwared port.

Re: Executing command over forwared port.

From: Peter Stuge <>
Date: Tue, 14 Jul 2015 23:01:38 +0200

Raghaw Shukla wrote:
> So u mean to say for point 2 is that i create one socket connect it with
> remote pc and then create a session fir that .

No, that's not what I mean.

Raghaw Shukla wrote:
> It will be great if i can get some reference on how to execute cimmand on
> tunnel i mean some example or sample code.i am new to ssh

There are no such examples in libssh2 so you will have to settle for
what is already available.

After you have studied the SSH protocol (links are available on the webpage) and implemented this I
think it would be nice if you could contribute a good example which
follows the style of the existing examples.


Received on 2015-07-14