Subject: [libssh2] Tunnelling using libssh2

[libssh2] Tunnelling using libssh2

From: Piotr Sipika <>
Date: Tue, 26 Jan 2010 09:41:22 -0500

Hi All,
I'm trying to execute a command on the remote host which uses
stdin/stdout as its input/output sources.
Currently, after calling libssh2_channel_exec(), I am only able to read
the output (stdout) of the command from the channel. Is there a way for
me to also write to the channel (to the command's stdin), having issued
the libssh2_channel_exec() call?

I would like to avoid having to use a pty/shell for this as it
introduces additional complexity in dealing with motd message(s) and
having to explicitly 'logout' from the shell, among others.

Thanks in advance,


Received on 2010-01-26