How do use paramiko.RSAKey.from_private_key()?

前端 未结 5 1092
逝去的感伤
逝去的感伤 2021-01-01 23:37

Any idea how I can use the paramiko.RSAKey.from_private_key() function?

I know there is a from_private_key_file(), but I\'m interested in us

5条回答
  •  醉话见心
    2021-01-02 00:23

    Very old question, but in case it helps some unfortunate soul: my sol'n to this problem was to generate a new key with default options, using

    ssh-keygen -t rsa

    My previous key was generated using

    ssh-keygen -t rsa -b 4096 -a 100

    which paramiko complained about as it did for OP.

提交回复
热议问题