[Twisted-Python] Twisted sshd examples?
![](https://secure.gravatar.com/avatar/5dfc005530985b5b99a6a19cde8a5418.jpg?s=120&d=mm&r=g)
Anyone familiar with a good implementation of twisted's ssh server? I'm looking to interface a menu application with SSH and instead of setting the python app as the UNIX shell, I'd like twisted to handle sshd so my application can permit different user logins (vs. being bound to a particular user's shell via that approach). The Twisted example provided (http://www.twistedmatrix.com/documents/current/examples/sshsimpleserver.py) appears to fail and I wonder if its outdated as the current API doesn't reference realm under conch: from twisted.conch import error, realm ... Traceback (most recent call last): File "sshd.py", line 3, in ? from twisted.conch import error, realm ImportError: cannot import name realm Thanks... Jamie
![](https://secure.gravatar.com/avatar/f2bb7225b5047991e87a44acf37e8373.jpg?s=120&d=mm&r=g)
On Thu, 2004-05-27 at 22:37, James R. Saker Jr. wrote:
Yeah, that was a stupid bug. The example in current SVN should work. You might also want to look at t.c.unix, which implements a bunch of the stuff that you will want to implement for your application (namely, a Session channel). -p -- Paul Swartz (o_ http://z3p.livejournal.com/ //\ z3p@twistedmatrix.com V_/_ AIM: z3penguin GPG:5CF0B1C9
![](https://secure.gravatar.com/avatar/f2bb7225b5047991e87a44acf37e8373.jpg?s=120&d=mm&r=g)
On Thu, 2004-05-27 at 22:37, James R. Saker Jr. wrote:
Yeah, that was a stupid bug. The example in current SVN should work. You might also want to look at t.c.unix, which implements a bunch of the stuff that you will want to implement for your application (namely, a Session channel). -p -- Paul Swartz (o_ http://z3p.livejournal.com/ //\ z3p@twistedmatrix.com V_/_ AIM: z3penguin GPG:5CF0B1C9
participants (2)
-
James R. Saker Jr.
-
Paul Swartz