{"id":167,"date":"2020-10-08T15:30:54","date_gmt":"2020-10-08T15:30:54","guid":{"rendered":"https:\/\/tier2.hep.caltech.edu\/?p=167"},"modified":"2021-09-20T18:12:31","modified_gmt":"2021-09-20T18:12:31","slug":"how-to-generate-ssh-key-pair","status":"publish","type":"post","link":"https:\/\/tier2.hep.caltech.edu\/?p=167","title":{"rendered":"How to generate SSH Key Pair?"},"content":{"rendered":"<p>To access interactive login nodes, you will need to have SSH Keypair. The procedure for creating a key pair varies depending on your operating system and preferred SSH client.<\/p>\n<h2 id=\"linux-and-macos-x\">Linux and macOS X<\/h2>\n<h4>Open a terminal and at the shell prompt, type the following command:<\/h4>\n<blockquote><p>$ ssh-keygen -t rsa -b 4096 -C &#8220;your_email@example.com&#8221;<\/p><\/blockquote>\n<h4>The ssh-keygen program will ask you for the location where to save the key file. You can optionally specify a passphrase to protect your key.<\/h4>\n<blockquote><p>$ ssh-keygen -t rsa -b 4096 -C &#8220;your_email@example.com&#8221;<br \/>\nGenerating public\/private rsa key pair.<br \/>\nEnter file in which to save the key (\/Users\/admin\/.ssh\/id_rsa):<br \/>\nEnter passphrase (empty for no passphrase):<br \/>\nEnter same passphrase again:<br \/>\nYour identification has been saved in \/Users\/admin\/.ssh\/id_rsa.<br \/>\nYour public key has been saved in \/Users\/admin\/.ssh\/id_rsa.pub.<br \/>\nThe key fingerprint is:<br \/>\nSHA256:mmfgSX2aapScScvkDLDaJ1FFBBncRgpQL\/hczrSEjsk your_email@example.com<br \/>\nThe key&#8217;s randomart image is:<br \/>\n+&#8212;[RSA 4096]&#8212;-+<br \/>\n|.oo.oX= |<br \/>\n| ..++.o |<br \/>\n|. o+*. |<br \/>\n|.*oB..o. |<br \/>\n|oE+.+Oo=S . |<br \/>\n|. o .o@= + |<br \/>\n| o .= = |<br \/>\n| .+ |<br \/>\n| .. |<br \/>\n+&#8212;-[SHA256]&#8212;&#8211;+<\/p><\/blockquote>\n<p><strong>Remember the location to which your public and private key were saved. You will need to send public key content (in terminal do `cat ~\/.ssh\/&lt;path_saved_key&gt;.pub`) to Tier2 administrators, while a private key is needed to access the cluster.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h2>Windows (using Putty)<\/h2>\n<p>On. your Windows machine, download Putty from https:\/\/www.putty.org.<\/p>\n<p>Go to Windows <b>Start menu<\/b> \u2192 <b>All Programs<\/b> \u2192 <b>PuTTY<\/b> \u2192 <b>PuTTYgen<\/b>.<\/p>\n<p>Click <strong>Generate;<\/strong><\/p>\n<p>In the next screen, click. <b>&#8220;Save private key&#8221; <\/b>and<b> \u00a0&#8220;Save public key&#8221;<\/b><\/p>\n<p><strong>Remember the location to which your public and private key were saved. You will need to send public key content (open saved key file with .pub end) to Tier2 administrators, while a private key is needed to access the cluster.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To access interactive login nodes, you will need to have SSH Keypair. The procedure for creating a key pair varies depending on your operating system and preferred SSH client. Linux and macOS X Open a terminal and at the shell prompt, type the following command: $ ssh-keygen -t rsa -b 4096 -C &#8220;your_email@example.com&#8221; The ssh-keygen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=\/wp\/v2\/posts\/167"}],"collection":[{"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167"}],"version-history":[{"count":4,"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":187,"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=\/wp\/v2\/posts\/167\/revisions\/187"}],"wp:attachment":[{"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tier2.hep.caltech.edu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}