[Twisted-Python] question about twisted conch (SSH) and wxPython
Astan Chee
stanc at al.com.au
Mon Jul 18 18:47:40 MDT 2005
Thanks for that, but since I've been using twisted's ssh, it doesnt
disconnect me from the server whenever I exit. It seems that for some
reason if I call the SimpleTransport class after I've called and
destroyed(how do I destroy a protocol.ClientFactory() class anyway?) it
once, it becomes stuck. I wonder if this is an unresolved bug, oh well.
The logs look something like this:
2005/07/19 10:41 AUS Eastern Standard Time [-] Log opened.
2005/07/19 10:41 AUS Eastern Standard Time [-] Starting factory
<twisted.internet.protocol.ClientFactory instance at 0x01C9D580>
2005/07/19 10:41 AUS Eastern Standard Time [-] Enabling Multithreading.
2005/07/19 10:41 AUS Eastern Standard Time [SimpleTransport,client] kex
alg, key alg: diffie-hellman-group-exchange-sha1 ssh-rsa
2005/07/19 10:41 AUS Eastern Standard Time [SimpleTransport,client]
client->server: aes256-cbc hmac-sha1 none
2005/07/19 10:41 AUS Eastern Standard Time [SimpleTransport,client]
server->client: aes256-cbc hmac-sha1 none
host key fingerprint: 3f:ae:08:ab:0a:79:c9:65:61:f0:ec:5e:1e:48:ee:69
2005/07/19 10:41 AUS Eastern Standard Time [SimpleTransport,client]
starting service ssh-userauth
2005/07/19 10:41 AUS Eastern Standard Time [SSHService ssh-userauth on
SimpleTransport,client] can continue with: ['publickey', 'password',
'keyboard-in
2005/07/19 10:41 AUS Eastern Standard Time [SSHService ssh-userauth on
SimpleTransport,client] trying to auth with publickey
2005/07/19 10:41 AUS Eastern Standard Time [SSHService ssh-userauth on
SimpleTransport,client] trying to auth with password
2005/07/19 10:41 AUS Eastern Standard Time [SSHService ssh-userauth on
SimpleTransport,client] starting service ssh-connection
2005/07/19 10:41 AUS Eastern Standard Time [SSHService ssh-userauth on
SimpleTransport,client] opening channel 0 with 65536 32768
2005/07/19 10:41 AUS Eastern Standard Time [SSHChannel session (0) on
SSHService ssh-connection on SimpleTransport,client] sending request exec
2005/07/19 10:41 AUS Eastern Standard Time [SSHChannel session (0) on
SSHService ssh-connection on SimpleTransport,client] sending eof
2005/07/19 10:41 AUS Eastern Standard Time [SSHChannel session (0) on
SSHService ssh-connection on SimpleTransport,client] remote eof
2005/07/19 10:41 AUS Eastern Standard Time [SSHChannel session (0) on
SSHService ssh-connection on SimpleTransport,client] unhandled request
for exit-st
2005/07/19 10:41 AUS Eastern Standard Time [SSHChannel session (0) on
SSHService ssh-connection on SimpleTransport,client] remote close
2005/07/19 10:41 AUS Eastern Standard Time [SSHChannel session (0) on
SSHService ssh-connection on SimpleTransport,client] sending close 0
2005/07/19 10:41 AUS Eastern Standard Time [SimpleTransport,client]
connection lost
2005/07/19 10:41 AUS Eastern Standard Time [SimpleTransport,client]
Stopping factory <twisted.internet.protocol.ClientFactory instance at
0x01C9D580>
2005/07/19 10:41 AUS Eastern Standard Time [-] Main loop terminated.
2005/07/19 10:41 AUS Eastern Standard Time [-] Log opened.
2005/07/19 10:41 AUS Eastern Standard Time [-] Log opened.
2005/07/19 10:41 AUS Eastern Standard Time [-] Starting factory
<twisted.internet.protocol.ClientFactory instance at 0x01CAB148>
2005/07/19 10:41 AUS Eastern Standard Time [-] Starting factory
<twisted.internet.protocol.ClientFactory instance at 0x01CAB148>
2005/07/19 10:41 AUS Eastern Standard Time [-] Stopping factory
<twisted.internet.protocol.ClientFactory instance at 0x01CAB148>
2005/07/19 10:41 AUS Eastern Standard Time [-] Stopping factory
<twisted.internet.protocol.ClientFactory instance at 0x01CAB148>
Jp Calderone wrote:
> On Tue, 19 Jul 2005 09:37:14 +1000, Astan Chee <stanc at al.com.au> wrote:
>
>> Thanks for the help.
>> Another thing I was wondering about is if any of the twisted
>> components supports rsh? or is just using the` rsh` command easiest?
>> Also where can I find detailed documentation on twisted classes and
>> its method? or is diving into the code my best way?
>> thanks again
>> Cheers
>
>
> rsh uses the rlogin protocol. The rlogin protocol is immensely
> trivial. A Twisted implementation would probably be less than 10
> lines, but one is not included with Twisted. Implementing it would
> probably be easier than shelling out to an rsh(1) binary. Twisted
> *does* include an SSH implementation, though. In most cases that is
> vastly preferable.
>
> Twisted uses epydoc markup extensively. The resulting automatically
> generated documentation is available at
> <http://twistedmatrix.com/documents/current/api/>.
>
> Diving into the source is also a really good way to become familiar
> with what Twisted can do. This can also give you a sense of the level
> of completion and polish a particular area of Twisted has, which is
> not always readily apparent from the API documentation.
>
> Jp
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
More information about the Twisted-Python
mailing list