[Twisted-Python] SSH client bad packet length

Paul Swartz z3p at twistedmatrix.com
Mon Oct 6 17:13:40 EDT 2003

On Mon, 2003-10-06 at 17:04, Anders Bruun Olsen wrote:
> Hi,
> 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
> object!).
> 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.

What that error means is that there was an error with one of the
packets.  Whether it's an error w/ your code or not I can't tell w/out
seeing the code.

      Paul Swartz
(o_   z3p at twistedmatrix dot com
//\   http://www.twistedmatrix.com/users/z3p.twistd/
V_/_  AIM: Z3Penguin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20031006/9b23a3cd/attachment.pgp 

More information about the Twisted-Python mailing list