Subject: Re-use a session for others channels

Re-use a session for others channels

From: Samuel ROZE <samuel.roze_at_gmail.com>
Date: Tue, 29 Dec 2009 17:40:56 +0100

Hello,

I use libssh2 with PHP to make SSH connections. I have a problem: when I
create a connection, it works, I can create a channel, send an received
data. But, with the same connection, I can't create another channel (the
other is still alive), 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.

Is it a limitation of libssh2 or, normally, it can be done with
libssh2 ? If it can be done, it must be a limitation of my SSH2
"plug-in" for PHP, and I'll work on this way, however, I'll work on the
libssh2 bug way. :-)

Regards,
Samuel ROZE.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-12-29