Re: [paramiko] Unknown private key cipher AES-128-CBC
On Wed, Sep 8, 2010 at 6:49 PM, Robey Pointer 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 } ___ paramiko mailing list paramiko@lag.net http://www.lag.net/cgi-bin/mailman/listinfo/paramiko
[paramiko] Trouble installing -- is there an egg?
I'm having trouble installing on a Windows 64-bit machine. Downloaded http://www.lag.net/paramiko/download/paramiko-1.7.6.zip , unzipped and ran it, and it installed ...Python25\Lib\site-packages\paramiko-1.7.2\ build\ demos\ dist\ docs\ paramiko\ paramiko.egg-info\ tests\ (and a bunch of other files including setup.py) One folder, paramiko.egg-info, suggests that there is an .egg file, but I don't find it. Is there an egg? Should I run easy_install? I tried this under Cygwin... > cd ...\site--packages\paramiko-1.7.2 > python setup.py build running build running build_py > python setup.py install running build running build_py running install_lib running install_egg_info Removing .../site-packages/paramiko-1.7.2-py2.6.egg-info Writing .../site-packages/paramiko-1.7.2-py2.6.egg-info So it looks like everything is installed, and sure enough, when I do... >>> import paramiko it imports without error. But if I exit python and start a whole new python session, then it does NOT work! >>> import paramiko ...ImportError: No module named paramiko Can somebody tell me what I am doing wrong? Steve ___ paramiko mailing list paramiko@lag.net http://www.lag.net/cgi-bin/mailman/listinfo/paramiko
Re: [paramiko] Trouble installing -- is there an egg?
Heya, On 09.09.2010 22:55, Steven Lehar wrote: import paramiko > > it imports without error. But if I exit python and start a whole new > python session, then it does NOT work! > import paramiko > > ...ImportError: No module named paramiko > > Can somebody tell me what I am doing wrong? > Sounds like a wrong PYTHONPATH. Cheers, Tobi signature.asc Description: OpenPGP digital signature ___ paramiko mailing list paramiko@lag.net http://www.lag.net/cgi-bin/mailman/listinfo/paramiko