Skip to content

Instantly share code, notes, and snippets.

Last active August 16, 2019 14:15
What would you like to do?
Convert id_rsa to pem

Convert private key

openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
chmod 600 private.pem

Convert public key

ssh-keygen -f ~/.ssh/ -m 'PEM' -e > public.pem
chmod 600 public.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment