[Twisted-Python] Conch SSH client howto

Henning.Ramm at mediapro-gmbh.de Henning.Ramm at mediapro-gmbh.de
Fri Oct 7 13:21:15 EDT 2005


> connectionSecure is called once, then getPublicKey 7 times, after that nothing happens in eternity.
> The pubKey seems to be ok, otherwise I got a BadKeyError.

Sorry for bothering you - after I hooked up twisted logging, I know what's going on:

[INFO] Starting factory <twisted.internet.protocol.ClientFactory instance at 0x015587D8>
[INFO] Enabling Multithreading.
[INFO] starting waker
[INFO] kex alg, key alg: diffie-hellman-group-exchange-sha1 ssh-rsa
[INFO] client->server: aes256-ctr hmac-sha1 none
[INFO] server->client: aes256-ctr hmac-sha1 none
[INFO] Transport verifyHostKey: ac:ff:b7:bd:90:a4:98:f0:42:eb:07:16:c0:9a:6e:f8
[INFO] Transport connectionSecure
[INFO] starting service ssh-userauth
[INFO] can continue with: ['publickey', 'password', 'keyboard-interactive']
[INFO] trying to auth with publickey
[INFO] AuthClient getPublicKey
[INFO] using key of type ssh-rsa

(last 4 lines repeated 7 times)

[ERROR] Got remote error, code 2
reason: Too many authentication failures for ppi
[INFO] connection lost
[INFO] Stopping factory <twisted.internet.protocol.ClientFactory instance at 0x015587D8>

I still have no idea why key auth doesn't work and how to enable password auth, but I will find out.
(That would be easier if conch.ssh had proper API docs, though.)

Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.




More information about the Twisted-Python mailing list