Skip to content

Instantly share code, notes, and snippets.

@shankar-bavan
Last active June 13, 2022 05:23
Show Gist options
  • Save shankar-bavan/6d2bffb42497b9c7bffd3430c1e3fe14 to your computer and use it in GitHub Desktop.
Save shankar-bavan/6d2bffb42497b9c7bffd3430c1e3fe14 to your computer and use it in GitHub Desktop.
Convert id_rsa to pem file
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
chmod 600 id_rsa.pem
if below erro comes:
unable to load Private Key
140506636608832:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY
run this
ssh-keygen -p -f ~/.ssh/id_rsa -m pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment