{"id":1643,"date":"2018-05-24T11:45:59","date_gmt":"2018-05-24T18:45:59","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1643"},"modified":"2018-05-24T11:45:59","modified_gmt":"2018-05-24T18:45:59","slug":"using-puttygen-to-generate-openssh-public-key","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1643","title":{"rendered":"Using puttygen to generate OpenSSH public key"},"content":{"rendered":"<p>I was given the private key for an SFTP server on a remote network.  The key was generate using puttygen.exe or similar program on a Windows system.  I needed to using public key authentication to access the server.  This is what I did to generate a public key to authenticate.<\/p>\n<p>On a Windows system, I ran puttygen.exe and imported the private key.  You can either do this as a parameter to the puttygen.exe program or import the key once you have started puttygen.exe:<\/p>\n<blockquote><p>puttygen somebodys.ppk <\/p><\/blockquote>\n<p>Once the key is imported, you can change the key comment from imported-openssh-key to something more meaningful.  And enter and confirm your choice of passphrase.  <\/p>\n<p>Then save the public key by clicking the button.<\/p>\n<p>Copy the newly generated public key to the openssh sftp client machine.<\/p>\n<p>Put the file in file in the ~\/.ssh directory and secure it (chmod 400 ~.ssh\/somebodys.pub).<\/p>\n<p>Then you just have to pass it to your sftp command.<\/p>\n<blockquote><p>$ sftp -i ~\/.ssh\/somebody.pub myusername@their.host.name<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I was given the private key for an SFTP server on a remote network. The key was generate using puttygen.exe or similar program on a Windows system. I needed to using public key authentication to access the server. This is what I did to generate a public key to authenticate. On a Windows system, I [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[466,252,389],"class_list":["post-1643","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-key","tag-putty","tag-sftp"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1643"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1643\/revisions"}],"predecessor-version":[{"id":1644,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1643\/revisions\/1644"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}