www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: LIBSSH2 dependencies

LIBSSH2 dependencies

From: Kishore Av <scorpionkish_at_gmail.com>
Date: Thu, 16 Jul 2015 00:18:13 +0530

Hi,

Please let me know the dependencies to code using libssh2 client library.

Thanks
Kishore
 On 09-Jul-2015 11:59 pm, "Peter Stuge" <peter_at_stuge.se> wrote:

> Kishore Av wrote:
> > What's the max limit of bytes we can send as command in
> > libssh2_channel_exec API.
>
> That depends on the server OS kernel as much as the server-side SSH
> implementation. You can control neither.
>
>
> > As i tried, 34,725 bytes of string can be sent as command in that api.
> > I using loop say it iterates till 4mb. First iteration,
> > libssh2_channel_exec success in executing command, but from 2nd
> > iteration getting fails - throws error - unable to send channel
> > request.
>
> As I explained, you must use a special program on the server to
> facilitate the execution of multiple commands. You will have to
> create and supply that program, ideally as part of setting up the
> channel.
>
>
> //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-15

the libssh2 team