{"id":4895,"date":"2015-06-01T18:16:49","date_gmt":"2015-06-01T10:16:49","guid":{"rendered":"http:\/\/rmohan.com\/?p=4895"},"modified":"2015-06-01T18:17:15","modified_gmt":"2015-06-01T10:17:15","slug":"converting-your-keypair-file","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4895","title":{"rendered":"Converting Your Keypair File"},"content":{"rendered":"<p>Purpose<\/p>\n<p>The keypair you create will be in the .pem format. If you plan on using PuTTy to SSH to a Linux instance from a Windows computer you will need to convert that keypair file to the .ppk format. This article will show you those steps.<\/p>\n<p>Notes<\/p>\n<p>Your original private key pair file (.pem) is required. If you no longer have the file then you will need to <a href=\"https:\/\/community.hpcloud.com\/article\/managing-your-key-pairs-135\">create a new key pair<\/a>.<\/p>\n<p>Pre-requisites<\/p>\n<ul>\n<li>Have your <a href=\"https:\/\/community.hpcloud.com\/article\/managing-your-key-pairs-135\">keypair created<\/a> and your .pem file ready to convert.<\/li>\n<li>Must have the PuTTYgen utility downloaded. You can download it from <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\">their website<\/a>.<\/li>\n<\/ul>\n<p>Walk-through Steps<\/p>\n<p><strong>Converting Your Keypair .pem file to a .ppk file<\/strong><\/p>\n<ol>\n<li>Locate the private key you saved as a .pem file using the <a href=\"https:\/\/community.hpcloud.com\/article\/managing-your-key-pairs\">Key Pairs<\/a> article previously linked.<\/li>\n<li>Open puttygen.exe and click on the <strong>Conversions<\/strong> menu and then <strong>Import Key<\/strong>. Search for your .pem file you created for your keypair and select it.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2015\/06\/puttygen2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4897\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2015\/06\/puttygen2.jpg\" alt=\"puttygen2\" width=\"480\" height=\"467\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttygen2.jpg 480w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttygen2-300x292.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttygen2-150x146.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttygen2-400x389.jpg 400w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p><strong>3.<\/strong> Your key will populate in the Puttygen window and then you want to click <strong>Save Private Key<\/strong>. You will be prompted with a pop-up asking you if you are sure you want to save the key without a passphrase and you can click Yes on that. You will then name the file and it will save it in the .ppk format.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2015\/06\/puttygen3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4898\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2015\/06\/puttygen3.jpg\" alt=\"puttygen3\" width=\"480\" height=\"466\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttygen3.jpg 480w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttygen3-300x291.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttygen3-150x146.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttygen3-400x388.jpg 400w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>4.<\/strong> You now have your private keypair file which you can use in the Putty program to SSH to your instance! You can view the knowledge-base article below for instructions on using your .ppk file to SSH to your instance using Putty:<br \/>\n<a href=\"https:\/\/community.hpcloud.com\/article\/connecting-your-instance\" rel=\"nofollow\">Connecting to your Instance<\/a><\/p>\n<h3>Converting Your Keypair .ppk file to a .pem file<\/h3>\n<p>Another scenario you may run into is you may have your .ppk file but you need to convert it back to a .pem file. You can also do this via Puttygen with these steps:<\/p>\n<p><strong>1.<\/strong> Open the Puttygen program<\/p>\n<p><strong>2.<\/strong> Click the Load button and locate your .ppk file:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2015\/06\/puttyload.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4899\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2015\/06\/puttyload.png\" alt=\"puttyload\" width=\"480\" height=\"464\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttyload.png 480w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttyload-300x290.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttyload-150x145.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttyload-400x387.png 400w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p><strong>3.<\/strong> With your key loaded, go to the Conversions menu and click Export OpenSSH key:<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2015\/06\/puttyconvert.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4896\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2015\/06\/puttyconvert.png\" alt=\"puttyconvert\" width=\"480\" height=\"464\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttyconvert.png 480w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttyconvert-300x290.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttyconvert-150x145.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2015\/06\/puttyconvert-400x387.png 400w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>NOTE:<\/strong> It will prompt you asking &#8220;Are you sure you want to save this key without a passphrase to protect it?&#8221; and if you choose to not use a passphrase then you can select Yes. If you use a passphrase then it must be set in the Puttygen program in the <em>Key passphrase<\/em> \/ <em>Confirm passphrase<\/em> fields.<\/p>\n<ol start=\"4\">\n<li>Save the file with a .pem extension and you&#8217;re done!<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose<\/p>\n<p>The keypair you create will be in the .pem format. If you plan on using PuTTy to SSH to a Linux instance from a Windows computer you will need to convert that keypair file to the .ppk format. This article will show you those steps.<\/p>\n<p>Notes<\/p>\n<p>Your original private key pair file (.pem) is [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4895"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4895"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4895\/revisions"}],"predecessor-version":[{"id":4900,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4895\/revisions\/4900"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}