Subject: Re: Re-use a session for others channels

Re: Re-use a session for others channels

From: Peter Stuge <>
Date: Fri, 1 Jan 2010 19:41:49 +0100

Samuel ROZE wrote:
> I've got an "Unable to request a channel from remote host" error
> because the libssh2_channel_open_session function didn't return a
> valid result.

In C you would call libssh2_channel_open_session() multiple times,
with the same session parameter, in order to open several channels
within one SSH session.

> Is it a limitation of libssh2 or, normally, it can be done with
> libssh2 ?

C applications can easily open multiple channels using libssh2.

Received on 2010-01-01