0

When I generate a key with Cygwin I get a:

-----BEGIN OPENSSH PRIVATE KEY-----

but I need a:

-----BEGIN RSA PRIVATE KEY-----

(2048)

I use the command:

>ssh-keygen -t rsa -b 2048

How do I generate good format key or how do I convert an openssh key into RSA key?

migrated from security.stackexchange.com Feb 11 at 10:56

This question came from our site for information security professionals.

  • I found this: and works for me: ssh-keygen -m PEM -t rsa -b 2048 – Cramaboule Feb 11 at 11:43

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.