{"id":7419,"date":"2023-02-09T21:03:27","date_gmt":"2023-02-09T21:03:27","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=7419"},"modified":"2023-02-09T21:03:27","modified_gmt":"2023-02-09T21:03:27","slug":"how-do-i-convert-a-ppk-to-pem-on-windows-and-linux","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2023\/02\/09\/how-do-i-convert-a-ppk-to-pem-on-windows-and-linux\/","title":{"rendered":"How do I convert a .ppk to .pem, on Windows and Linux?"},"content":{"rendered":"\n<p>Need to convert a .ppk putty key? This article can help you with the information.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Download and install the suite of putty tools (<a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" rel=\"noreferrer noopener\">putty-64bit-0.78-installer.msi<\/a>)cif you don&#8217;t have it already: <\/p>\n\n\n\n<p>Windows &#8211; convert a .ppk file to a .pem file<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Start PuTTYgen. For Actions, choose Load, and then navigate to your .ppk file.<\/li>\n\n\n\n<li>Choose the .ppk file, and then choose Open.<\/li>\n\n\n\n<li>(Optional) For Key passphrase, enter a passphrase. For Confirm passphrase, re-enter your passphrase.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/02\/2023-02-09_16-32-52.png\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"471\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/02\/2023-02-09_16-32-52.png\" alt=\"\" class=\"wp-image-7424\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/02\/2023-02-09_16-32-52.png 602w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/02\/2023-02-09_16-32-52-300x235.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/figure>\n\n\n\n<p><em>Note: Although a passphrase isn&#8217;t required, it&#8217;s a best practice to specify one. This is a security measure to protect the private key from unauthorized use. A passphrase makes automation difficult, because users must manually log in to an instance or copy files to an instance.<\/em><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>From the menu at the top of the PuTTY Key Generator, choose Conversions, Export OpenSSH Key.\n<ul class=\"wp-block-list\"><\/ul>\n<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/02\/2023-02-09_16-34-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"471\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/02\/2023-02-09_16-34-17.png\" alt=\"\" class=\"wp-image-7425\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/02\/2023-02-09_16-34-17.png 602w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/02\/2023-02-09_16-34-17-300x235.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/figure>\n\n\n\n<p>Note: If you didn&#8217;t enter a passphrase, then you receive a PuTTYgen warning. Choose Yes.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Name the file and add the .pem extension.<\/li>\n\n\n\n<li>Choose Save.<\/li>\n<\/ol>\n\n\n\n<p><strong>Unix or Linux &#8211; install PuTTY<\/strong><\/p>\n\n\n\n<p>Download and install PuTTY if you don&#8217;t have it already: <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.putty.org\/<\/a><\/p>\n\n\n\n<p>Important: The Extra Packages for Enterprise Linux (EPEL) repository contains the PuTTY package. You must activate the EPEL repository before you install PuTTY.<\/p>\n\n\n\n<p>To install PuTTY, run one of the following commands:<\/p>\n\n\n\n<p><strong>RPM-based<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo yum install putty\n<\/pre><\/div>\n\n\n<p><strong>Dpkg-based<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo apt-get install putty-tools\n<\/pre><\/div>\n\n\n<p>Unix or Linux &#8211; convert a .pem file to a .ppk file<\/p>\n\n\n\n<p>On the instance shell, run the puttygen command to convert your .pem file to a .ppk file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo puttygen pemKey.pem -o ppkKey.ppk -O private\n<\/pre><\/div>\n\n\n<p>Unix or Linux &#8211; convert a .ppk file to a .pem file<\/p>\n\n\n\n<p>Run the puttygen command to convert a .ppk file into a .pem file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo puttygen ppkkey.ppk -O private-openssh -o pemkey.pem\n<\/pre><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Need to convert a .ppk putty key? This article can help you with the information.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,110],"tags":[],"class_list":["post-7419","post","type-post","status-publish","format-standard","hentry","category-administration","category-ssh"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/7419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=7419"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/7419\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=7419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=7419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=7419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}