{"id":605,"date":"2024-05-07T21:12:47","date_gmt":"2024-05-07T21:12:47","guid":{"rendered":"https:\/\/ni.cmu.edu\/computing\/?post_type=ht_kb&#038;p=605"},"modified":"2024-08-28T12:24:51","modified_gmt":"2024-08-28T12:24:51","slug":"setup-of-key-pairs-in-windows-and-configuring-putty","status":"publish","type":"ht_kb","link":"https:\/\/ni.cmu.edu\/computing\/knowledge-base\/setup-of-key-pairs-in-windows-and-configuring-putty\/","title":{"rendered":"Setup of Key pairs in Windows and configuring putty"},"content":{"rendered":"<ol>\n<li><strong>Generate SSH keys<\/strong>: Run the command <code>ssh-keygen -t rsa -b 4096<\/code> in your terminal. When prompted, save the keys to <code>C:\\Users\\&lt;username&gt;\\.ssh\\rsa<\/code> and do not set a password.<\/li>\n<li><strong>Check the generated files<\/strong>: Two files, <code>id_rsa<\/code> and <code>id_rsa.pub<\/code>, should be created in the directory you specified.<\/li>\n<li><strong>Copy public key to server<\/strong>: Copy the contents of <code>id_rsa.pub<\/code> into your <code>mind.cs.cmu.edu:~\/.ssh\/authorized_keys<\/code> file.<\/li>\n<li><strong>Download and install PuTTY<\/strong>: You can download it from the <a href=\"https:\/\/www.putty.org\/\">official website<\/a>.<\/li>\n<li><strong>Launch PuTTYGen<\/strong>: Use this to convert your private key to a format PuTTY can use.\n<ul>\n<li><strong>Import and convert key<\/strong>:\u00a0 Go to <code>Conversions&gt;Import key<\/code>, select your <code>id_rsa<\/code> file, then click <code>Save private key<\/code>. Save the new <code>.ppk<\/code> file as <code>id_rsa2<\/code>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure PuTTY<\/strong>:\n<ul>\n<li>Open PuTTY without connecting to a remote system.<\/li>\n<li>Navigate to <code>Connection&gt;Data<\/code> and set the <code>Auto-login username<\/code> to your SSH username.<\/li>\n<li>Navigate to <code>Connection&gt;SSH&gt;Auth&gt;Credentials<\/code>, click <code>Browse<\/code> under <code>Private key file for authentication<\/code>, and select your <code>id_rsa2.ppk<\/code> file.<\/li>\n<li>Set <code>Session Host Name<\/code> to <code>mind.cs.cmu.edu<\/code>.<\/li>\n<li>Save these settings under <code>Saved sessions<\/code>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Log in<\/strong>: To log in, open PuTTY, load your saved session, and click <code>Open<\/code>. You should be automatically logged in to <code>mind<\/code>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Generate SSH keys: Run the command ssh-keygen -t rsa -b 4096 in your terminal. When prompted, save the keys to C:\\Users\\&lt;username&gt;\\.ssh\\rsa and do not set a password. Check the generated files: Two files, id_rsa and id_rsa.pub, should be created in the directory you specified. Copy public key to server: Copy&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[12],"ht-kb-tag":[],"class_list":["post-605","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-getting-started"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/ht-kb\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/comments?post=605"}],"version-history":[{"count":1,"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/ht-kb\/605\/revisions"}],"predecessor-version":[{"id":606,"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/ht-kb\/605\/revisions\/606"}],"wp:attachment":[{"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/media?parent=605"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/ht-kb-category?post=605"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ni.cmu.edu\/computing\/wp-json\/wp\/v2\/ht-kb-tag?post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}