[Twisted-Python] PB over SSH
![](https://secure.gravatar.com/avatar/e750f0707608b28769d4ccd4816e5e9c.jpg?s=120&d=mm&r=g)
I've hacked up a working implementation of PB over SSH (Conch) if anyone is interested. It's a convienient way to have both transport security and authentication for PB sessions. I've implemented a version in plain Twisted and one using PEAK+Twisted. The code is a little rough, but if there's any interest I can clean it up for general consumption.
![](https://secure.gravatar.com/avatar/a82a913ec2f6cf578731da60b0802d26.jpg?s=120&d=mm&r=g)
On Thu, 2004-02-26 at 20:39, John Landahl wrote:
Yes, please :) -- Alex Levy WWW: http://mesozoic.geecs.org "Never let your sense of morals prevent you from doing what is right." -- Salvor Hardin, Isaac Asimov's _Foundation_
![](https://secure.gravatar.com/avatar/d7875f8cfd8ba9262bfff2bf6f6f9b35.jpg?s=120&d=mm&r=g)
On Thu, 2004-02-26 at 20:39, John Landahl wrote:
PB over SSH is... a good idea, but not the way to implement this, exactly. What you'd want is a SSH *transport*. It would allow you to run any twisted protocol over an existing conch SSH connection, transparently, just as you can run over TCP or SSL. In addition this transport should provide a credential object tied to the logged in user so you can use it with cred transparently. Plus a SSH-to-TCP gateway transport that lets you listen or connect using the SSH portforwarding support. Once you've built this, PB over SSH is probably 10 lines of code.
![](https://secure.gravatar.com/avatar/0cdda6a2fc76a3fabb29f0e8056ebdd6.jpg?s=120&d=mm&r=g)
Itamar Shtull-Trauring <itamar@itamarst.org> writes:
Are there any examples on writing one own's transport? I'd be interested in a PB transport. Any hints to get started?
Once you've built this, PB over SSH is probably 10 lines of code.
-- brainbot technologies ag boppstrasse 64 . 55118 mainz . germany fon +49 6131 211639-1 . fax +49 6131 211639-2 http://brainbot.com/ mailto:ralf@brainbot.com
![](https://secure.gravatar.com/avatar/a82a913ec2f6cf578731da60b0802d26.jpg?s=120&d=mm&r=g)
On Thu, 2004-02-26 at 20:39, John Landahl wrote:
Yes, please :) -- Alex Levy WWW: http://mesozoic.geecs.org "Never let your sense of morals prevent you from doing what is right." -- Salvor Hardin, Isaac Asimov's _Foundation_
![](https://secure.gravatar.com/avatar/d7875f8cfd8ba9262bfff2bf6f6f9b35.jpg?s=120&d=mm&r=g)
On Thu, 2004-02-26 at 20:39, John Landahl wrote:
PB over SSH is... a good idea, but not the way to implement this, exactly. What you'd want is a SSH *transport*. It would allow you to run any twisted protocol over an existing conch SSH connection, transparently, just as you can run over TCP or SSL. In addition this transport should provide a credential object tied to the logged in user so you can use it with cred transparently. Plus a SSH-to-TCP gateway transport that lets you listen or connect using the SSH portforwarding support. Once you've built this, PB over SSH is probably 10 lines of code.
![](https://secure.gravatar.com/avatar/0cdda6a2fc76a3fabb29f0e8056ebdd6.jpg?s=120&d=mm&r=g)
Itamar Shtull-Trauring <itamar@itamarst.org> writes:
Are there any examples on writing one own's transport? I'd be interested in a PB transport. Any hints to get started?
Once you've built this, PB over SSH is probably 10 lines of code.
-- brainbot technologies ag boppstrasse 64 . 55118 mainz . germany fon +49 6131 211639-1 . fax +49 6131 211639-2 http://brainbot.com/ mailto:ralf@brainbot.com
participants (5)
-
Alex Levy
-
Eric Mangold
-
Itamar Shtull-Trauring
-
John Landahl
-
ralf@brainbot.com