Skip to content

Instantly share code, notes, and snippets.

@shankar-bavan
Last active May 30, 2025 18:14
Show Gist options
  • Select an option

  • Save shankar-bavan/6d2bffb42497b9c7bffd3430c1e3fe14 to your computer and use it in GitHub Desktop.

Select an option

Save shankar-bavan/6d2bffb42497b9c7bffd3430c1e3fe14 to your computer and use it in GitHub Desktop.

Revisions

  1. shankar-bavan revised this gist May 26, 2021. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion convert-ppk-to-pem
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,11 @@
    openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
    chmod 600 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
  2. shankar-bavan revised this gist Dec 24, 2020. No changes.
  3. shankar-bavan created this gist Dec 24, 2020.
    2 changes: 2 additions & 0 deletions convert-ppk-to-pem
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
    chmod 600 id_rsa.pem