Re: [Twisted-Python] Creating an SSH client programatically with Twisted?

Hi, Thank you for the information and help. Paul Swartz sent me an SSH client he has written and mentioned that he might be doing some more client examples and documentation for the conch module at some point. Max On Tue, 22 Oct 2002 17:38:27 +0200, Christopher Armstrong wrote:

On 22 Oct 2002 at 12:14, Max Schubert wrote:
As promised, I've attached a simple SSH client. It connects to a server, and runs three programs: true, false, and echo. It tries to use a DSA public key in ~/.ssh/id_dsa[.pub] for authentication but falls back to asking for a password. I'll be putting this in CVS soon, but you saw it here first :) -p -- Paul Swartz (o_ http://twistedmatrix.com/users/z3p.twistd/ //\ z3p@twistedmatrix.com V_/_ AIM: Z3Penguin The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: simple_ssh.py Date: 22 Oct 2002, 19:41 Size: 2909 bytes. Type: Text

I'm new to twisted. So just jump up and slap me if necessary. But i'm reading the new "book" (all hail moshez) and reading about PB. Now micro$oft has alot of information out there about writing component based appliations whereby you expose your business object through COM. Would PB be considered a competing technology for this? Could i wrap my business objects with PB and expose them this way? -newbie...

On Tue, 22 Oct 2002 19:00:45 -0500 (CDT), <developer@csrules.dyndns.org> wrote:
Could i wrap my business objects with PB and expose them [as with COM]?
Not quite. Insofar as PB is a "competing technology", it is competing with DCOM, not COM. Think of it like this: COM:DCOM::Python:PB. COM is an object model; Python is an object model. You can give your objects COM stubs or you can give them Python wrappers. Then, you can publish Python objects by wrapping them with pb.Referenceable or doing the appropriate DCOM things. However, as MSFT is no longer pushing DCOM, and instead focusing on SOAP, you can see it as "competing" with that standard. This metaphor is not perfect, but it should give you a better idea. PB is specifically for objects communicating over "long" distances, between segregated "vats" of objects (c.f. http://www.erights.org/) and not to provide function pointers between objects that live in the same address space. -- | <`'> | Glyph Lefkowitz: Travelling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |

I think actually that I tend to get terminology messed (as i'm not a programmer by trade) and what you describe is what i meant. Thanks! I've been reviewing the mailing list archives. Specifically I've written some "applications" based on zope. Basically some database stuff with zope managing the views to the data. I'm encouraged to see (in the archives) that there seems to be some interest in melding zope and twisted in some way. -Darryl

On Tue, 22 Oct 2002 19:45:44 -0400, "Paul Swartz" <z3p@twistedmatrix.com> wrote:
As promised, I've attached a simple SSH client.
WHAT ARE YOU, SOME KIND OF MACHINE!?! :-) -- | <`'> | Glyph Lefkowitz: Travelling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |

On 22 Oct 2002 at 12:14, Max Schubert wrote:
As promised, I've attached a simple SSH client. It connects to a server, and runs three programs: true, false, and echo. It tries to use a DSA public key in ~/.ssh/id_dsa[.pub] for authentication but falls back to asking for a password. I'll be putting this in CVS soon, but you saw it here first :) -p -- Paul Swartz (o_ http://twistedmatrix.com/users/z3p.twistd/ //\ z3p@twistedmatrix.com V_/_ AIM: Z3Penguin The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: simple_ssh.py Date: 22 Oct 2002, 19:41 Size: 2909 bytes. Type: Text

I'm new to twisted. So just jump up and slap me if necessary. But i'm reading the new "book" (all hail moshez) and reading about PB. Now micro$oft has alot of information out there about writing component based appliations whereby you expose your business object through COM. Would PB be considered a competing technology for this? Could i wrap my business objects with PB and expose them this way? -newbie...

On Tue, 22 Oct 2002 19:00:45 -0500 (CDT), <developer@csrules.dyndns.org> wrote:
Could i wrap my business objects with PB and expose them [as with COM]?
Not quite. Insofar as PB is a "competing technology", it is competing with DCOM, not COM. Think of it like this: COM:DCOM::Python:PB. COM is an object model; Python is an object model. You can give your objects COM stubs or you can give them Python wrappers. Then, you can publish Python objects by wrapping them with pb.Referenceable or doing the appropriate DCOM things. However, as MSFT is no longer pushing DCOM, and instead focusing on SOAP, you can see it as "competing" with that standard. This metaphor is not perfect, but it should give you a better idea. PB is specifically for objects communicating over "long" distances, between segregated "vats" of objects (c.f. http://www.erights.org/) and not to provide function pointers between objects that live in the same address space. -- | <`'> | Glyph Lefkowitz: Travelling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |

I think actually that I tend to get terminology messed (as i'm not a programmer by trade) and what you describe is what i meant. Thanks! I've been reviewing the mailing list archives. Specifically I've written some "applications" based on zope. Basically some database stuff with zope managing the views to the data. I'm encouraged to see (in the archives) that there seems to be some interest in melding zope and twisted in some way. -Darryl

On Tue, 22 Oct 2002 19:45:44 -0400, "Paul Swartz" <z3p@twistedmatrix.com> wrote:
As promised, I've attached a simple SSH client.
WHAT ARE YOU, SOME KIND OF MACHINE!?! :-) -- | <`'> | Glyph Lefkowitz: Travelling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |
participants (6)
-
Christopher Armstrong
-
developer@csrules.dyndns.org
-
Glyph Lefkowitz
-
Maniac -
-
Max Schubert
-
Paul Swartz