{"id":1344,"date":"2016-11-27T21:54:34","date_gmt":"2016-11-28T05:54:34","guid":{"rendered":"https:\/\/www.cloudinsidr.com\/content\/?p=1344"},"modified":"2016-11-27T22:27:13","modified_gmt":"2016-11-28T06:27:13","slug":"how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server","status":"publish","type":"post","link":"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/","title":{"rendered":"How to create OpenSSH keys on a Windows desktop for remote access to a Linux server with PuTTY Key Generator"},"content":{"rendered":"<p>When using authentication based on keys (as opposed to a password), you have to create the key pair\u2014a private key and a public key\u2014on your local machine, then transfer the public key to the server and install it there. Here is\u00a0how to\u00a0do this on a Windows desktop for remote access to a Linux server.<\/p>\n<p><!--more--><\/p>\n<h4>Step 1. Set up PuTTY\u00a0with PuTTY Key Generator<\/h4>\n<p>On your local PC, download and\u00a0install\u00a0PuTTY\u00a0with PuTTY Key Generator.<\/p>\n<h4>Step 2. Create your key pair<\/h4>\n<p>In\u00a0PuTTY Key Generator, select the type of key, the desired bit length and an optional passphrase, then hit &#8220;Generate&#8221; to create a public\/private key pair.<\/p>\n<figure id=\"attachment_1371\" aria-describedby=\"caption-attachment-1371\" style=\"width: 479px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/puttygen-2\/\" rel=\"attachment wp-att-1371\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1371 size-full\" src=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen-1.png\" alt=\"Creating a key pair in PuTTY Key Generator: random mouse movements decrease the likelihood of a successful brute-force attack\u00a0on the key\" width=\"479\" height=\"466\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen-1.png 479w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen-1-300x292.png 300w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><\/a><figcaption id=\"caption-attachment-1371\" class=\"wp-caption-text\">Creating a key pair in PuTTY Key Generator: random mouse movements decrease the likelihood of a successful brute-force attack\u00a0on the key<\/figcaption><\/figure>\n<h4>Step 3. Save your private .ppk key for use with PuTTY<\/h4>\n<p>Click on the button &#8220;Save your private key&#8221; to save it in a\u00a0.ppk file for use with PuTTY. You can always recover the public key from the private key file (for example by loading the private key file in PuTTY Key Generator), but not the other way around.<\/p>\n<figure id=\"attachment_1372\" aria-describedby=\"caption-attachment-1372\" style=\"width: 545px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/puttygen_save_keys-2\/\" rel=\"attachment wp-att-1372\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1372 size-full\" src=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen_save_keys-1.png\" alt=\"PuTTY Key Generator: saving a private key in a .ppk file for ssh access with PuTTY\" width=\"545\" height=\"509\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen_save_keys-1.png 545w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen_save_keys-1-300x280.png 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/a><figcaption id=\"caption-attachment-1372\" class=\"wp-caption-text\">PuTTY Key Generator: saving a private key in a .ppk file for ssh access with PuTTY<\/figcaption><\/figure>\n<h4>Step 4.\u00a0Save your private\u00a0key for use with OpenSSH<\/h4>\n<p>In order to save your private key for use with OpenSSH, select the command &#8220;Conversions &gt; Export OpenSSH key&#8221; and save the file in a secure location in your home directory on your local computer. A good place to put your keys on your local Windows machine is in<\/p>\n<p>C:\\Users\\username\\.ssh<\/p>\n<p>Remember: this key is your secret. Do <strong>not<\/strong>\u00a0transfer it to the server!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1370\" src=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/Export_OpenSSH-1.png\" alt=\"export_openssh\" width=\"479\" height=\"466\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/Export_OpenSSH-1.png 479w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/Export_OpenSSH-1-300x292.png 300w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><\/p>\n<h4>Step 5. Save your public key for use with OpenSSH<\/h4>\n<p>An OpenSSH-compatible version of your public key is displayed in the dialog. Copy it into the clipboard and transfer to the server.<\/p>\n<figure id=\"attachment_1373\" aria-describedby=\"caption-attachment-1373\" style=\"width: 758px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/puttygen_save_keys_authorized_keys-2\/\" rel=\"attachment wp-att-1373\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1373 size-full\" src=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen_save_keys_authorized_keys-1.png\" alt=\"PuTTYGen: this is how to save your public key for use in authorized_keys\" width=\"758\" height=\"525\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen_save_keys_authorized_keys-1.png 758w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen_save_keys_authorized_keys-1-600x416.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/PuTTYGen_save_keys_authorized_keys-1-300x208.png 300w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/a><figcaption id=\"caption-attachment-1373\" class=\"wp-caption-text\">PuTTYGen: this is how to save your public key for use in authorized_keys<\/figcaption><\/figure>\n<p>Follow these steps on how to set up remote access via SFTP to a web server root directory on RHEL\/CentOS\/Fedora using this key.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using authentication based on keys (as opposed to a password), you have to create the key pair\u2014a private key and a public key\u2014on your local machine, then transfer the public key to the server and install it there. Here is\u00a0how to\u00a0do this on a Windows desktop for remote access to a Linux server.<\/p>\n","protected":false},"author":1,"featured_media":1370,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[33,111,1],"tags":[167,18],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create OpenSSH keys on a Windows desktop for remote access to a Linux server with PuTTY Key Generator - CloudInsidr<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create OpenSSH keys on a Windows desktop for remote access to a Linux server with PuTTY Key Generator - CloudInsidr\" \/>\n<meta property=\"og:description\" content=\"When using authentication based on keys (as opposed to a password), you have to create the key pair\u2014a private key and a public key\u2014on your local machine, then transfer the public key to the server and install it there. Here is\u00a0how to\u00a0do this on a Windows desktop for remote access to a Linux server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudInsidr\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-28T05:54:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-11-28T06:27:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/Export_OpenSSH-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"479\" \/>\n\t<meta property=\"og:image:height\" content=\"466\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#website\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/\",\"name\":\"CloudInsidr\",\"description\":\"Cyber security, infotech\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.cloudinsidr.com\/content\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/11\/Export_OpenSSH-1.png\",\"width\":479,\"height\":466},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/#webpage\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/\",\"name\":\"How to create OpenSSH keys on a Windows desktop for remote access to a Linux server with PuTTY Key Generator - CloudInsidr\",\"isPartOf\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/#primaryimage\"},\"datePublished\":\"2016-11-28T05:54:34+00:00\",\"dateModified\":\"2016-11-28T06:27:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#\/schema\/person\/dd6ee9cb21cf05763fd7cff3d6f11b2b\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cloudinsidr.com\/content\/how-to-create-openssh-keys-on-a-windows-desktop-for-remote-access-to-a-linux-server\/\"]}]},{\"@type\":[\"Person\"],\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#\/schema\/person\/dd6ee9cb21cf05763fd7cff3d6f11b2b\",\"name\":\"Cloud Insidr\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8b2fa1415b3d573b97d818b8f8f83b7c?s=96&d=mm&r=g\",\"caption\":\"Cloud Insidr\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/1344"}],"collection":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/comments?post=1344"}],"version-history":[{"count":7,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/1344\/revisions"}],"predecessor-version":[{"id":2631,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/1344\/revisions\/2631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/media\/1370"}],"wp:attachment":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/media?parent=1344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/categories?post=1344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/tags?post=1344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}