[Twisted-Python] ssh and python shell with twisted

Turi ivaturi at gmail.com
Thu Nov 13 14:43:46 EST 2008

Let me preface by saying, I am new to python and of course Twisted. I
am trying to play with the examples already available
http://www.devshed.com/c/a/Python/SSH-with-Twisted/. I believe that is
the example from Oreilly book on Twisted. I looked at the custom ssh
server script and then the providing python shell over ssh script
http://www.devshed.com/c/a/Python/SSH-with-Twisted/3/. What I am
curious about is how to combine these two? So I want to be able to set
up the custom ssh server, which the first example explains, but have
support for a command in the SSHDemoProtocol Class (like
do_python_shell) which will invoke python shell over the existing ssh
session. I am assuming you have to somehow do that over the existing
channel, but how? Does my question make sense?


More information about the Twisted-Python mailing list