Difference between revisions of "Openssh openssl"
Jump to navigation
Jump to search
(Created page with "https://stackoverflow.com/questions/1011572/convert-pem-key-to-ssh-rsa-format https://tutorialinux.com/convert-ssh2-openssh/") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | # 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://stackoverflow.com/questions/1011572/convert-pem-key-to-ssh-rsa-format | ||
https://tutorialinux.com/convert-ssh2-openssh/ | https://tutorialinux.com/convert-ssh2-openssh/ | ||
Latest revision as of 18:17, 30 January 2023
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