[Twisted-Python] ssh and python shell with twisted
![](https://secure.gravatar.com/avatar/72ce6ff9b175bd97df5969751cb42303.jpg?s=120&d=mm&r=g)
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? --Turi
participants (1)
-
Turi