
On Wed, Jul 23, 2008 at 6:00 AM, Jack Whitham <jack-tp@cs.york.ac.uk> wrote:
On Wed, Jul 23, 2008 at 01:39:19AM -0700, Pump Kin wrote:
Step 1) Is really bugging me here; I can't seem to strip the need for foreknowledge of the public key from the script. I can't easily programmatically access that information in my use case. I do however have ready access to the private key and fingerprint for verification. My modified tutorial scripts just vomit.
I had the same problem. Some new key management features have been added to Conch recently, so you now only need the private key:
class ClientUserAuth(userauth.SSHUserAuthClient): def getPrivateKey(self): return defer.succeed(self.__getKey().keyObject)
(Although I still get a deprecation warning about signData if I do this..)
You're getting the deprecation warning because you're not calling back the Deferred with a Key object; you're calling it back with a PyCrypto key object (that's what .keyObject is) -p -- Paul Swartz paulswartz at gmail dot com http://z3p.jot.com/ AIM: z3penguin