Last active
June 13, 2022 05:23
-
-
Save shankar-bavan/6d2bffb42497b9c7bffd3430c1e3fe14 to your computer and use it in GitHub Desktop.
Convert id_rsa to pem file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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