Subject: Re: [libssh2] Tunnelling using libssh2

Re: [libssh2] Tunnelling using libssh2

From: Aris Adamantiadis <>
Date: Tue, 26 Jan 2010 20:38:26 +0100

Hello Piotr,

Just launch "/bin/sh" as command and issue the commands as if they were
written in a shell script. That works also with perl, python, ... most
script machines that are installed into the remote host.



Piotr Sipika a écrit :
> It would appear that after libssh2_channel_exec() completes, the channel
> gets destroyed. I created another one and opened up a shell on it to
> issue the second command -- that worked.
> It seems I'm basically in the same boat as the author of the 'multiple
> exec calls' post.
> Thanks,
> P
> ------------------------------------------------------------------------
> _______________________________________________
> libssh2-devel
Received on 2010-01-26