{"id":595,"date":"2017-03-05T10:09:22","date_gmt":"2017-03-05T10:09:22","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=595"},"modified":"2023-01-13T12:18:52","modified_gmt":"2023-01-13T12:18:52","slug":"generate-ssh-key","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/generate-ssh-key\/","title":{"rendered":"How to generate a SSH key"},"content":{"rendered":"<p>The cPanel <strong>SSH Access<\/strong> interface allows you to generate and download an SSH Key pair for your account. SSH allows secure file transfer and remote logins over the internet, the connections via SSH are encrypted, allowing secure connections.<\/p>\n<h3 id=\"how-to-generate-an-ssh-key\">How to generate an SSH key<\/h3>\n<p><strong>1)<\/strong>\u00a0<strong><a href=\"https:\/\/chemicloud.com\/kb\/article\/login-cpanel-whm-account\/\">Log into cPanel<\/a>.<\/strong><\/p>\n<p><strong>2)<\/strong> Look for the <strong>SECURITY<\/strong>\u00a0section and click on <strong>SSH Access<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7683\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access-783x295.png\" alt=\"\" width=\"643\" height=\"242\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access-783x295.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access-300x113.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access-768x289.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access-50x19.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access-1536x578.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access-60x23.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access-100x38.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/cPanel-Security-SSH-Access.png 1744w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>3)<\/strong> \u00a0Click on the &#8220;<strong>Manage SSH Keys<\/strong>&#8221; button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7684\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-783x140.png\" alt=\"\" width=\"643\" height=\"115\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-783x140.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-300x54.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-768x138.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-50x9.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-1536x275.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-2048x367.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-60x11.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Manage-SSH-Keys-100x18.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>4)<\/strong> Click on the <strong>&#8220;Generate a New Key&#8221; <\/strong>button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7685\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-783x131.png\" alt=\"\" width=\"643\" height=\"108\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-783x131.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-300x50.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-768x129.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-50x8.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-1536x258.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-2048x344.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-60x10.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Generate-a-New-Key-100x17.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>5)<\/strong> In the next screen, you&#8217;ll be asked to choose a name and a password for your SSH Key. Please ensure you write down this password, as you need it to establish the SSH connection. Next, choose DSA or RSA for the type. It&#8217;s recommended that you choose RSA and use the 2048 or higher key size. Once you are ready, click on the <strong>&#8220;Generate Key&#8221;<\/strong> button.<\/p>\n<p><strong>6)<\/strong> After the Key is generated, a confirmation message will appear on the next screen. Click on the &#8220;<strong>Go Back<\/strong>&#8221; icon to view\/manage your SSH Key.<\/p>\n<h3 id=\"how-to-authorize-an-ssh-key\">How to Authorize an SSH Key<\/h3>\n<p>For the new SSH key to function, we\u00a0<strong>must<\/strong> authorize it. This can quickly be done from the &#8220;<strong>SSH Access<\/strong>&#8221; section within cPanel.<\/p>\n<p><strong>1)<\/strong> \u00a0Click on the <strong>&#8220;Manage&#8221; <\/strong>link next to the key you generated earlier.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7686\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-783x157.png\" alt=\"\" width=\"643\" height=\"129\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-783x157.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-300x60.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-768x154.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-50x10.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-1536x308.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-2048x411.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-60x12.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/Public-Keys-Manage-100x20.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>2)<\/strong> Now click the &#8220;<strong>Authorize<\/strong>&#8221; button to complete the process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7687\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-783x141.png\" alt=\"\" width=\"643\" height=\"116\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-783x141.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-300x54.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-768x138.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-50x9.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-1536x276.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-2048x368.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-60x11.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/03\/SSH-Access-Authorize-100x18.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<h3 id=\"how-to-download-the-private-key\">How to Download the Private Key<\/h3>\n<p>Now that we have generated and authorized the SSH Key, we&#8217;ll need to download it.<\/p>\n<p><strong>1)<\/strong> From the <strong>SSH Access<\/strong> section, click on the <strong>View\/Download<\/strong> button corresponding to the key pair you have just generated and authorized.<\/p>\n<p><strong>2)<\/strong> Here, you&#8217;ll see two options if you are a Mac\/Ubuntu\/Other Linux user, copy the text from the window to a file on your PC. You can name it key.ppk. Another option would be to click the <strong>&#8220;Download Key&#8221; <\/strong>button, which will automatically save the Private Key to your computer.<\/p>\n<p><strong>3)<\/strong> If you are a <strong>Windows<\/strong> user, you will need to enter the passphrase you set while creating the key and convert the key to a format that Windows software (generally PuTTY) understands, and click on the <strong>&#8220;Convert&#8221;<\/strong> button.<\/p>\n<p><strong>4)<\/strong>\u00a0Click on <strong>&#8220;Download Key&#8221;<\/strong> to save the key to your computer.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Important Information:<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tIf you receive an error while importing your keys in Linux, we recommend setting the correct file permissions on the key file you&#8217;ve downloaded. Review the KB we have on this topic <a href=\"https:\/\/chemicloud.com\/kb\/article\/ssh-authentication-refused-bad-ownership-or-modes-for-directory\/\" target=\"_blank\" rel=\"noopener\">here<\/a> for assistance, or you can contact our Support team for more information and assistance in completing this!&#8221;    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>The cPanel SSH Access interface allows you to generate and download an SSH Key pair for your account. SSH allows secure file transfer and remote logins over the internet, the connections via SSH are encrypted, allowing secure connections. How to generate an SSH key 1)\u00a0Log into cPanel. 2) Look for&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[37],"ht-kb-tag":[],"class_list":["post-595","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-ftp-and-ssh-access"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=595"}],"version-history":[{"count":7,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/595\/revisions"}],"predecessor-version":[{"id":7688,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/595\/revisions\/7688"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=595"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=595"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}