{"id":10477,"date":"2014-06-02T14:50:55","date_gmt":"2014-06-02T14:50:55","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=10477"},"modified":"2019-04-04T14:45:01","modified_gmt":"2019-04-04T14:45:01","slug":"convert-a-ppk-file-to-a-pem-file","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/","title":{"rendered":"Converting a ppk file to a pem file for accessing AWS ec2 instances on Linux"},"content":{"rendered":"<p>Yesterday , i am working on the project in which i need to access the server which is a AWS EC2 instance. Putty ppk file has been provided to me to connect it, but i need to access it on linux so i need to convert this ppk file into equivalent pem file. I tried many things, google it, but nothing is working. Although i was able to connect via Filezilla but from terminal i can`t. Finally, by Hit-n-Try method, i got the solution.<br \/>\nHere is a list of steps I followed to convert that PPK file into an equivalent PEM file that I could use access Ec2 instance on linux terminal via SSH &#8211;<\/p>\n<ul>\n<li>Install the <a href=\"https:\/\/www.puttygen.com\" target=\"_blank\" rel=\"noopener noreferrer\">PuTTYgen tools<\/a>, if you don`t have on Linux: as-<\/li>\n<\/ul>\n<pre class=\"brush:shell\">sudo apt-get install putty-tools<\/pre>\n<ul>\n<li>Generate the pem file run the following command: as-<\/li>\n<\/ul>\n<pre class=\"brush:shell\">puttygen ppkkey.ppk -O private-openssh -o pemkey.pem<\/pre>\n<ul>\n<li>Place the pemkey.pem file in your ~\/.ssh directory: as-<\/li>\n<\/ul>\n<pre class=\"brush:shell\">cp pemkey.pem ~\/.ssh<\/pre>\n<ul>\n<li>Set the pem file to have the proper permissions: as-<\/li>\n<\/ul>\n<pre class=\"brush:shell\">chmod 400 pemkey.pem<\/pre>\n<p>That\u2019s it<br \/>\nNow, we have a valid pem file that we can use to connect to our EC2 instances from Linux. Below is an example:<\/p>\n<pre class=\"brush:shell;html-script:false;\">ssh -i pemkey.pem user@ec2-instancedotcom<\/pre>\n<p>Similarly, if we want to convert pem file to ppk , we can do it like this &#8211;<\/p>\n<blockquote>\n<pre class=\"brush:cf\">puttygen pemKey.pem -o ppkKey.ppk -O private\r\n\r\n#Flags:\r\n-o Tells it where to write out the converted putty private key\r\n-O private Tells it that you want a putty private key.<\/pre>\n<\/blockquote>\n<p>That`s it !!!<br \/>\nI hope it will help someone in the future.<br \/>\nAnd by someone I most likely mean by me !<\/p>\n<p>[stextbox id=&#8221;info&#8221;]Your opinions, comments and suggestions are important to keep the page updated and interesting.\u00a0[\/stextbox]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday , i am working on the project in which i need to access the server which is a AWS EC2 instance. Putty ppk file has been provided to me to connect it, but i need to access it on linux so i need to convert this ppk file into equivalent pem file. I tried <a href=\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":10,"featured_media":22126,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[890,1248,1249,1250,266],"class_list":["post-10477","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-linux","tag-pem-to-ppk","tag-ppk-to-pem","tag-putty","tag-ubuntu-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Converting a ppk file to a pem file or vice-versa<\/title>\n<meta name=\"description\" content=\"Converting a ppk file to a pem file or vice-versa\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Converting a ppk file to a pem file or vice-versa\" \/>\n<meta property=\"og:description\" content=\"Converting a ppk file to a pem file or vice-versa\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-02T14:50:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-04T14:45:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mohit Chandra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mohit Chandra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/\"},\"author\":{\"name\":\"Mohit Chandra\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/82824e8c1a101ec721fda4c7a418cc2a\"},\"headline\":\"Converting a ppk file to a pem file for accessing AWS ec2 instances on Linux\",\"datePublished\":\"2014-06-02T14:50:55+00:00\",\"dateModified\":\"2019-04-04T14:45:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/\"},\"wordCount\":253,\"commentCount\":20,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png\",\"keywords\":[\"linux\",\"pem to ppk\",\"ppk to pem\",\"putty\",\"ubuntu\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/\",\"url\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/\",\"name\":\"Converting a ppk file to a pem file or vice-versa\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png\",\"datePublished\":\"2014-06-02T14:50:55+00:00\",\"dateModified\":\"2019-04-04T14:45:01+00:00\",\"description\":\"Converting a ppk file to a pem file or vice-versa\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Converting a ppk file to a pem file for accessing AWS ec2 instances on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/82824e8c1a101ec721fda4c7a418cc2a\",\"name\":\"Mohit Chandra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3aea81ed8ce4e8e1aa6cde51d2aa5813f3beacc645152f757e47e367d65b85aa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3aea81ed8ce4e8e1aa6cde51d2aa5813f3beacc645152f757e47e367d65b85aa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Mohit Chandra\"},\"description\":\"Mohit Chandra is an expert Odoo developer and the Owl framework, specializing in multi-platform integration services. He excels in developing dynamic, scalable solutions that seamlessly integrate diverse systems, leveraging his deep knowledge to enhance business efficiency and drive technological innovation.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/mohit-chandra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Converting a ppk file to a pem file or vice-versa","description":"Converting a ppk file to a pem file or vice-versa","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/","og_locale":"en_US","og_type":"article","og_title":"Converting a ppk file to a pem file or vice-versa","og_description":"Converting a ppk file to a pem file or vice-versa","og_url":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2014-06-02T14:50:55+00:00","article_modified_time":"2019-04-04T14:45:01+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png","type":"image\/png"}],"author":"Mohit Chandra","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Mohit Chandra","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/"},"author":{"name":"Mohit Chandra","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/82824e8c1a101ec721fda4c7a418cc2a"},"headline":"Converting a ppk file to a pem file for accessing AWS ec2 instances on Linux","datePublished":"2014-06-02T14:50:55+00:00","dateModified":"2019-04-04T14:45:01+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/"},"wordCount":253,"commentCount":20,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png","keywords":["linux","pem to ppk","ppk to pem","putty","ubuntu"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/","url":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/","name":"Converting a ppk file to a pem file or vice-versa","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png","datePublished":"2014-06-02T14:50:55+00:00","dateModified":"2019-04-04T14:45:01+00:00","description":"Converting a ppk file to a pem file or vice-versa","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/06\/All-Blogs-Blog-Post-Banner3.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/convert-a-ppk-file-to-a-pem-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Converting a ppk file to a pem file for accessing AWS ec2 instances on Linux"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/82824e8c1a101ec721fda4c7a418cc2a","name":"Mohit Chandra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3aea81ed8ce4e8e1aa6cde51d2aa5813f3beacc645152f757e47e367d65b85aa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3aea81ed8ce4e8e1aa6cde51d2aa5813f3beacc645152f757e47e367d65b85aa?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Mohit Chandra"},"description":"Mohit Chandra is an expert Odoo developer and the Owl framework, specializing in multi-platform integration services. He excels in developing dynamic, scalable solutions that seamlessly integrate diverse systems, leveraging his deep knowledge to enhance business efficiency and drive technological innovation.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/mohit-chandra\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/10477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=10477"}],"version-history":[{"count":53,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/10477\/revisions"}],"predecessor-version":[{"id":181737,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/10477\/revisions\/181737"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/22126"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=10477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=10477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=10477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}