I tested your test case on Ubuntu 21.10 (impish) and it works there:

$ ssh-keygen -f fail.rsa -t rsa -N ''
Generating public/private rsa key pair.
Your identification has been saved in fail.rsa
Your public key has been saved in fail.rsa.pub
The key fingerprint is:
SHA256:LHuK1nhYceeuCBDz3Uja1X8gnaSpfmDd6GQi9tHU3+Y bdrung@deep-thought
The key's randomart image is:
+---[RSA 3072]----+
|            .    |
|         . * .   |
|  o   . . * =    |
|   + =.=.=.= o . |
|  . o BoSo* o o o|
|   . ..B B.  . o |
|    .=. +.o     E|
|    +oo+ ..      |
|   ...o ..       |
+----[SHA256]-----+
$ python3 -c 'from paramiko.rsakey import RSAKey; 
RSAKey.from_private_key_file("fail.rsa")'
$

So the support was added since then.

** Changed in: paramiko (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1808194

Title:
  paramiko can't parse the default key format generated by ssh-keygen

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/paramiko/+bug/1808194/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to