Skip to content

Instantly share code, notes, and snippets.

@xcsrz
Created April 5, 2020 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xcsrz/3e0cbf652a0f95896d7cabd0ddc42c62 to your computer and use it in GitHub Desktop.
Save xcsrz/3e0cbf652a0f95896d7cabd0ddc42c62 to your computer and use it in GitHub Desktop.
This one command is so hard to track down every 3 years when I need it. So many posts incorrectly insist the private key is in PEM format already. In truth, it depends on how the key pair was created (openssl vs ssh-keygen).
# NOTE: this updates the file in place, do you have a backup?
ssh-keygen -p -m PEM -f ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment