Openssh openssl

From UVOO Tech Wiki
Revision as of 18:17, 30 January 2023 by Busk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Convert openssl rsa pem to openssh formt

https://stackoverflow.com/questions/66234349/convert-rsa-to-openssh

As long as you are using -m PEM in your command, the result won't be an OPENSSH format.

This will convert an RSA/PEM private key into an OPENSSH one:

ssh-keygen -p -N "" -f /path/to/key
You can then extract its public key and confirm it is identical to the one you have before:

ssh-keygen -y -f /path/to/key

https://stackoverflow.com/questions/1011572/convert-pem-key-to-ssh-rsa-format

https://tutorialinux.com/convert-ssh2-openssh/