Subject: Re: libssh2_channel_exec, LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED error after second call

Re: libssh2_channel_exec, LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED error after second call

From: Peter Stuge <peter_at_stuge.se>
Date: Sat, 30 Apr 2011 01:49:43 +0200

Hi.

S. Gurbel wrote:
> In my program, I need to execute more commands in one channel.

You do not know enough detail about the SSH protocol to accomplish
what you want. Please read up. Specifically only one command is
executed in a channel.

> I get error LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED.
> I'm using libssh2-1.2.7 version on Ubuntu 10.04.
>
> Thank you!

You are not even asking a question. Come on. Anyway. Please check the
protocol specs to learn how the different features of the protocol
(and thus API of libssh2) can be used, and try again, you'll have to
solve your problem in a different way than you thought.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-04-30