[Twisted-Python] simple example for twisted ssh server with public key authentification

Hi, I just wanted to be sure, whether anybody has a small example snippet of a twisted ssh server with public key authentification.

On Sat, Aug 4, 2012 at 3:23 PM, Gelonida N <gelonida@gmail.com> wrote:
Hi,
I just wanted to be sure, whether anybody has a small example snippet of a twisted ssh server with public key authentification.
So, um, simple? Not sure if I can help you there ;-) This was simple at one point, when it was part of an IRC logging bot that offered an SSH shell (manhole) to manipulate live objects, but it has since been split out into its own project: https://github.com/dreamhost/dreamssh Best case scenario, it provides what you need. Worst case scenario, you can fork it and remove all the crap that you don't need ;-) Note that dreamssh provides the Twisted-standard manhole interpreter, as well as a custom "echo" interpreter, intended to offer an example of how to create your own ssh shell (I've started using this in a text-based adventure game, with the ultimate goal of using it as the interface for a Twisted-base MUD). d

On 08/05/2012 01:59 AM, Duncan McGreggor wrote:
On Sat, Aug 4, 2012 at 3:23 PM, Gelonida N <gelonida@gmail.com <mailto:gelonida@gmail.com>> wrote:
Hi,
I just wanted to be sure, whether anybody has a small example snippet of a twisted ssh server with public key authentification.
So, um, simple? Not sure if I can help you there ;-) This was simple at one point, when it was part of an IRC logging bot that offered an SSH shell (manhole) to manipulate live objects, but it has since been split out into its own project: https://github.com/dreamhost/dreamssh
Best case scenario, it provides what you need.
Worst case scenario, you can fork it and remove all the crap that you don't need ;-)
Note that dreamssh provides the Twisted-standard manhole interpreter, as well as a custom "echo" interpreter, intended to offer an example of how to create your own ssh shell (I've started using this in a text-based adventure game, with the ultimate goal of using it as the interface for a Twisted-base MUD).
Thanks Duncan, I'll look into it, but it defeinitely sounds like a good starting point (looking at the project description)

Hi, perhaps our project code could help with the insight: Creation of the SSH server: https://github.com/opennode/opennode-management/blob/master/opennode/oms.tac... Definition of the checker: https://github.com/opennode/opennode-management/blob/master/opennode/oms/sec... cheers, Ilja On 6 August 2012 10:30, Gelonida N <gelonida@gmail.com> wrote:
On 08/05/2012 01:59 AM, Duncan McGreggor wrote:
On Sat, Aug 4, 2012 at 3:23 PM, Gelonida N <gelonida@gmail.com <mailto:gelonida@gmail.com>> wrote:
Hi,
I just wanted to be sure, whether anybody has a small example
snippet of
a twisted ssh server with public key authentification.
So, um, simple? Not sure if I can help you there ;-) This was simple at one point, when it was part of an IRC logging bot that offered an SSH shell (manhole) to manipulate live objects, but it has since been split out into its own project: https://github.com/dreamhost/dreamssh
Best case scenario, it provides what you need.
Worst case scenario, you can fork it and remove all the crap that you don't need ;-)
Note that dreamssh provides the Twisted-standard manhole interpreter, as well as a custom "echo" interpreter, intended to offer an example of how to create your own ssh shell (I've started using this in a text-based adventure game, with the ultimate goal of using it as the interface for a Twisted-base MUD).
Thanks Duncan,
I'll look into it, but it defeinitely sounds like a good starting point (looking at the project description)
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (3)
-
Duncan McGreggor
-
Gelonida N
-
Ilja Livenson