popszegecs - 2011-02-02

Hi,

I'm trying to implement a client that communicates with a given openssh server subsystem (for example "SubSystem test /bin/sh" in /etc/ssh/sshd_config, accessible using "ssh localhost -s test"). I've found an EchoChannel in the docs, and trying to use "test@localhost" in the getChannelType(), but had no luck: openchannel() always returns false. What's the correct way to connect to that subsystem?

Thanks,
popszegecs