hg wrote:
> [EMAIL PROTECTED] wrote:
>
> > paramiko
> http://www.lag.net/paramiko/docs/
>
> __str__ ?

hi
thanks for the tip
i done up a function to generate priv/pub key pairs like this

def keygen(bits,fil,password=None):
        k = paramiko.RSAKey.generate(bits)
        k.write_private_key_file(fil, password)
        pk = paramiko.RSAKey(filename=fil)
        o = open(pubk ,"w").write(pk.__str__())


Is this the correct way to do it ?
thanks

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to