[Twisted-Python] SSH client bad packet length

Anders Bruun Olsen anders at bruun-olsen.net
Mon Oct 6 17:04:22 EDT 2003


I am trying to learn a bit of Twisted in order to make an app that will
use SSH for running commands on remote hosts. I have followed the SSH
howto on the homepage where I have changed it to accept any fingerprint
and have put my own private and public keys in instead of the ones from
the example and have it connecting to a server of mine that accepts
passwordless key-auth. Lastly I have enabled logging to stdout (it might
be an idea to add to the howto which module to import to get the log

When it connects this is the output I get:

drzero at ernest pyssh-stuff $ ./sshsimpleclient.py
2003/10/06 22:31 CEST [-] Log opened.
2003/10/06 22:31 CEST [-] Starting factory <twisted.internet.protocol.ClientFactory instance at 0x8323b0c>
2003/10/06 22:31 CEST [ClientTransport,client] kex alg, key alg: diffie-hellman-group-exchange-sha1 ssh-rsa
2003/10/06 22:31 CEST [ClientTransport,client] client->server: aes256-ctr hmac-sha1 none
2003/10/06 22:31 CEST [ClientTransport,client] server->client: aes256-ctr hmac-sha1 none
2003/10/06 22:31 CEST [ClientTransport,client] Disconnecting with error, code 2
        reason: bad packet length 415956278
2003/10/06 22:31 CEST [ClientTransport,client] connection lost
2003/10/06 22:31 CEST [ClientTransport,client] Stopping factory <twisted.internet.protocol.ClientFactory instance at 0x8323b0c>
2003/10/06 22:32 CEST [-] Main loop terminated.

Note that the packet length changes..

Is it a problem in my code (which is basically the howto code) or a
problem with my server (Gentoo w/ OpenSSH 3.7.1p2) or something else?

Version: 3.12
GCS/O d--@ s:+ a-- C++ UL+++$ P++ L+++ E- W+ N(+) o K? w O-- M- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b++ DI+++ D+ G e- h !r y?
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41

More information about the Twisted-Python mailing list