Subject: Re: Starting a subsystem other than e.g. sftp

Re: Starting a subsystem other than e.g. sftp

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 25 May 2011 16:20:19 +0200 (CEST)

On Tue, 24 May 2011, Michael C. Cambria wrote:

> Is there a way to supply to libssh2 the name of an external subsystem which
> sshd is to use (similar to "-s my-subsystem" on the command line in
> OpenSSH?)

You can start a custom subsystem with libssh2_channel_process_startup().
Something like:

   libssh2_channel_process_startup(handle, "subsystem", 9,
                                   "my-subsystem", 12);

You can probably check out the sftp.c code to get inspiration, since SFTP is a
subsystem.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-05-25