[Twisted-Python] Twisted conch - ssh question

Paul Swartz paulswartz at gmail.com
Tue Mar 31 14:22:47 EDT 2009

On 03/31/2009 01:19 PM, Ameya Lokare wrote:
> Thanks for the response, Paul. Sorry I wasn't clear before. I realize
> they are not made to work with each other. What I intended to ask was,
> what modifications are required to make them work with each other?
> Basically, I want to write both the ssh client and server with conch,
> and have them transfer some data to each other over the ssh channel. How
> can this be done?

You can either make the server accept commands (see the execCommand() 
method on session.SSHSession) or tell the client to request a shell:

self.conn.sendRequest(self, 'shell', '', wantReply=True)

Paul Swartz
paulswartz at gmail dot com
AIM: z3penguin

More information about the Twisted-Python mailing list