Hello, thank you, by applying this fix everything works perfectly for me.
On 9 September 2010 16:30, James Bardin <jbar...@bu.edu> wrote: > On Wed, Sep 8, 2010 at 6:49 PM, Robey Pointer <robeypoin...@gmail.com> > wrote: > > > > It may be as simple as adding another line to the top of pkey.py, in the > _CIPHER_TABLE: > > > > 'AES-128-CBC': { 'cipher': AES, 'keysize': 16, 'blocksize': 16, > 'mode': AES.MODE_CBC } > > > > Could you try that and let me know if it fixes it? > > > > Hi Robey, > > That works using a private key generated by openssl. > > > --- a/paramiko/pkey.py > +++ b/paramiko/pkey.py > @@ -25,7 +25,7 @@ from binascii import hexlify, unhexlify > import os > > from Crypto.Hash import MD5 > -from Crypto.Cipher import DES3 > +from Crypto.Cipher import DES3, AES > > from paramiko.common import * > from paramiko import util > @@ -40,6 +40,7 @@ class PKey (object): > > # known encryption types for private key files: > _CIPHER_TABLE = { > + 'AES-128-CBC': { 'cipher': AES, 'keysize': 16, 'blocksize': > 16, 'mode': AES.MODE_ > 'DES-EDE3-CBC': { 'cipher': DES3, 'keysize': 24, 'blocksize': > 8, 'mode': DES3.MOD > } > -- Regards, Ludovico Fischer
_______________________________________________ paramiko mailing list paramiko@lag.net http://www.lag.net/cgi-bin/mailman/listinfo/paramiko