Skip to content

Instantly share code, notes, and snippets.

@skyionblue
Forked from mingfang/convert id_rsa to pem
Created May 24, 2019 16:48
Show Gist options
  • Save skyionblue/8a9a8ead77842a87c0ed95313c1ebf5a to your computer and use it in GitHub Desktop.
Save skyionblue/8a9a8ead77842a87c0ed95313c1ebf5a to your computer and use it in GitHub Desktop.

Revisions

  1. @mingfang mingfang revised this gist Aug 3, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion convert id_rsa to pem
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
    openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
    chmod 700 id_rsa.pem
  2. @mingfang mingfang created this gist Feb 3, 2015.
    1 change: 1 addition & 0 deletions convert id_rsa to pem
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem