putty (putty-gen) apparently encodes keys (somehow) differently to openssh when exporting to the openssh format. These keys fail to parse with the ssh-key crate with Encoding(Pem(Base64(InvalidEncoding))), but parse fine with openssh:
One notable difference is that these keys have a linewidth of 64 whereas openssh uses 70.
Re-formatting the keys to be linewidth 70 in a text editor leads to an "Encoding(Length)" error.
Hi,
putty (putty-gen) apparently encodes keys (somehow) differently to openssh when exporting to the openssh format. These keys fail to parse with the ssh-key crate with
Encoding(Pem(Base64(InvalidEncoding)))
, but parse fine with openssh:RSA:
Ed25519:
One notable difference is that these keys have a linewidth of 64 whereas openssh uses 70. Re-formatting the keys to be linewidth 70 in a text editor leads to an "Encoding(Length)" error.