[Twisted-Python] conch.ssh.SSHFactory publicKeys and getPublicKeys

Adi Roiban adi at roiban.ro
Thu Feb 2 03:00:34 MST 2017


Hi,

I am writing to ask about the reason why t.conch.ssh.Factory has both
the getPublicKeys and getPrivateKeys methods ?

The public keys should be string while private keys should be
twisted.conch.ssh.keys.Key

Based on my understanding if you have a private key object you can
extract the public key from it.

Are there any SSH key formats which will store a private key without
the public components ?

Or this is just a legacy code from the time when
twisted.conch.ssh.keys.Key was not there... and getPublicKeys should
be deprecated?

Thanks!

-- 
Adi Roiban



More information about the Twisted-Python mailing list