Subject: Re: Executing command over forwared port.

Re: Executing command over forwared port.

From: Raghaw Shukla <raghaw.wesee_at_gmail.com>
Date: Tue, 14 Jul 2015 23:25:37 +0530

Hi peter

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
On Jul 14, 2015 9:06 PM, "Raghaw Shukla" <raghaw.wesee_at_gmail.com> 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 .
> On Jul 14, 2015 7:56 PM, "Peter Stuge" <peter_at_stuge.se> wrote:
>
>> 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
>>
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2015-07-14