{"id":650,"date":"2015-02-06T03:15:02","date_gmt":"2015-02-06T03:15:02","guid":{"rendered":"https:\/\/www.hackmethod.com\/?p=650"},"modified":"2015-12-06T03:40:05","modified_gmt":"2015-12-06T03:40:05","slug":"tutorial-using-putty-private-key","status":"publish","type":"post","link":"https:\/\/hackmethod.com\/tutorial-using-putty-private-key\/","title":{"rendered":"Tutorial &#8211; Using PuTTy with a Private Key"},"content":{"rendered":"<p>This guide will show you how to use a private key stored in a text document to ssh into a remote server using Putty.\u00a0Thanks to reddit user <a href=\"http:\/\/www.reddit.com\/user\/177854\" target=\"_blank\">177854<\/a>\u00a0for providing this write-up!<\/p>\n<p><!--more--><\/p>\n<p>First you have to download PuTTy Key generator or puttygen. You can find it it <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.htm\" target=\"_blank\">here<\/a>. \u00a0After downloading PuTTY Key Generator open up Puttygen and you should see something like this.<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"651\" data-permalink=\"https:\/\/hackmethod.com\/tutorial-using-putty-private-key\/putty1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty1.png?fit=493%2C478&amp;ssl=1\" data-orig-size=\"493,478\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"putty1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty1.png?fit=300%2C291&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty1.png?fit=493%2C478&amp;ssl=1\" class=\" size-full wp-image-651 aligncenter\" src=\"https:\/\/i0.wp.com\/www.hackmethod.com\/wp-content\/uploads\/2015\/02\/putty1.png?resize=493%2C478&#038;ssl=1\" alt=\"putty1\" width=\"493\" height=\"478\" srcset=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty1.png?w=493&amp;ssl=1 493w, https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty1.png?resize=300%2C291&amp;ssl=1 300w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/>From this page you can generate a public\/private key pair or load an already existing one, which is what we need to do. Hit load and select the private key you have in text document (.txt) form. Be sure to select View all file types, Puttygen\u2019s default is to look for private key files already.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"652\" data-permalink=\"https:\/\/hackmethod.com\/tutorial-using-putty-private-key\/putty2\/\" data-orig-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty2-e1423192437387.png?fit=306%2C109&amp;ssl=1\" data-orig-size=\"306,109\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"putty2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty2-e1423192437387.png?fit=300%2C107&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty2-e1423192437387.png?fit=306%2C109&amp;ssl=1\" class=\"aligncenter wp-image-652 size-full\" src=\"https:\/\/i0.wp.com\/www.hackmethod.com\/wp-content\/uploads\/2015\/02\/putty2-e1423192437387.png?resize=306%2C109&#038;ssl=1\" alt=\"putty2\" width=\"306\" height=\"109\" srcset=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty2-e1423192437387.png?w=306&amp;ssl=1 306w, https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty2-e1423192437387.png?resize=300%2C107&amp;ssl=1 300w\" sizes=\"(max-width: 306px) 100vw, 306px\" \/>Now you should see a message that tells you that you have successfully imported the private key.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"653\" data-permalink=\"https:\/\/hackmethod.com\/tutorial-using-putty-private-key\/putty3\/\" data-orig-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty3.png?fit=329%2C215&amp;ssl=1\" data-orig-size=\"329,215\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"putty3\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty3.png?fit=300%2C196&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty3.png?fit=329%2C215&amp;ssl=1\" class=\" size-full wp-image-653 aligncenter\" src=\"https:\/\/i0.wp.com\/www.hackmethod.com\/wp-content\/uploads\/2015\/02\/putty3.png?resize=329%2C215&#038;ssl=1\" alt=\"putty3\" width=\"329\" height=\"215\" srcset=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty3.png?w=329&amp;ssl=1 329w, https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty3.png?resize=300%2C196&amp;ssl=1 300w\" sizes=\"(max-width: 329px) 100vw, 329px\" \/>Don\u2019t forget to save it so it will be converted to the correct format.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"654\" data-permalink=\"https:\/\/hackmethod.com\/tutorial-using-putty-private-key\/putty4\/\" data-orig-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty4.png?fit=471%2C214&amp;ssl=1\" data-orig-size=\"471,214\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"putty4\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty4.png?fit=300%2C136&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty4.png?fit=471%2C214&amp;ssl=1\" class=\" size-full wp-image-654 aligncenter\" src=\"https:\/\/i0.wp.com\/www.hackmethod.com\/wp-content\/uploads\/2015\/02\/putty4.png?resize=471%2C214&#038;ssl=1\" alt=\"putty4\" width=\"471\" height=\"214\" srcset=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty4.png?w=471&amp;ssl=1 471w, https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty4.png?resize=300%2C136&amp;ssl=1 300w\" sizes=\"(max-width: 471px) 100vw, 471px\" \/>Entering a passphrase is optional and not necessary for bandit, in the real world it is recommended.<\/p>\n<p>Now we are ready to logon to our server! To tell Putty that we want to use our private key to log on to our server. We will find the place to upload the file under Connection -&gt; SSL -&gt; Auth.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"655\" data-permalink=\"https:\/\/hackmethod.com\/tutorial-using-putty-private-key\/putty5\/\" data-orig-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty5.png?fit=461%2C444&amp;ssl=1\" data-orig-size=\"461,444\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"putty5\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty5.png?fit=300%2C289&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty5.png?fit=461%2C444&amp;ssl=1\" class=\" size-full wp-image-655 aligncenter\" src=\"https:\/\/i0.wp.com\/www.hackmethod.com\/wp-content\/uploads\/2015\/02\/putty5.png?resize=461%2C444&#038;ssl=1\" alt=\"putty5\" width=\"461\" height=\"444\" srcset=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty5.png?w=461&amp;ssl=1 461w, https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty5.png?resize=300%2C289&amp;ssl=1 300w\" sizes=\"(max-width: 461px) 100vw, 461px\" \/>Here we see the space to upload our private key. Now that we have it uploaded it\u2019s time to connect to the server! Just type in the server name under session like any normal connection and you will be connected! No password needed!<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"656\" data-permalink=\"https:\/\/hackmethod.com\/tutorial-using-putty-private-key\/putty6\/\" data-orig-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty6.png?fit=672%2C695&amp;ssl=1\" data-orig-size=\"672,695\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"putty6\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty6.png?fit=290%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty6.png?fit=672%2C695&amp;ssl=1\" class=\" size-full wp-image-656 aligncenter\" src=\"https:\/\/i0.wp.com\/www.hackmethod.com\/wp-content\/uploads\/2015\/02\/putty6.png?resize=672%2C695&#038;ssl=1\" alt=\"putty6\" width=\"672\" height=\"695\" srcset=\"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty6.png?w=672&amp;ssl=1 672w, https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty6.png?resize=600%2C621&amp;ssl=1 600w, https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty6.png?resize=290%2C300&amp;ssl=1 290w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will show you how to use a private key stored in a text document to ssh into a remote server using Putty.\u00a0Thanks to reddit user 177854\u00a0for providing this write-up!<\/p>\n","protected":false},"author":1,"featured_media":651,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[55,46],"class_list":["post-650","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-software","tag-tutorials"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/hackmethod.com\/wp-content\/uploads\/2015\/02\/putty1.png?fit=493%2C478&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5zY4D-au","_links":{"self":[{"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/posts\/650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/comments?post=650"}],"version-history":[{"count":6,"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/posts\/650\/revisions"}],"predecessor-version":[{"id":671,"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/posts\/650\/revisions\/671"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/media\/651"}],"wp:attachment":[{"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/media?parent=650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/categories?post=650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hackmethod.com\/wp-json\/wp\/v2\/tags?post=650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}