{"id":395,"date":"2016-07-22T19:03:58","date_gmt":"2016-07-22T19:03:58","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=395"},"modified":"2017-02-10T19:19:53","modified_gmt":"2017-02-10T19:19:53","slug":"manage-root-ssh-keys-and-use-putty","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/manage-root-ssh-keys-and-use-putty\/","title":{"rendered":"Manage root SSH Keys and use PuTTY"},"content":{"rendered":"<div class=\"itemtext internalpadding \">\u00a0<\/div>\n<h2 class=\"itemtext internalpadding \">What is SSH Protocol\u00a0<\/h2>\n<div class=\"itemtext internalpadding \">\n SSH Protocol allows you to secure file transfer and remote logins to your server over the internet. The connection via SSH is encrypted and allowing the secure connection between client program &#8220;PuTTY as example&#8221; and linux server. <\/p>\n<p> This document contains:<\/p>\n<ul>\n<li>Generate SSH Key from WHM<\/li>\n<li>Configure PuTTY to secure connection to your VPS Or Dedicated Server<\/li>\n<li>Connect To your VPS , Dedicate server using PuTTY SSH Key<\/li>\n<\/ul>\n<p>\n You can generate ssh key from WHM by following these steps:<\/p>\n<ol>\n<li>Login to WHM as root account<\/li>\n<li>\n<p>Navigate to Security Center link in the Home page of WHM<\/p>\n<p><a class=\"lightbox-image-link\" title=\"WHM Security Center\" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-Security-Center.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-Security-Center.png\" alt=\"WHM Security Center\" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<li>On the Security Center Page Navigate to Manage Root&#8217;s SSH Keys link\n<p>also in this section you can manage\/delete keys if you have already generate SSH Keys before<\/p>\n<p><a class=\"lightbox-image-link\" title=\"Manage Root's SSH Keys\" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-Manage-root-SSH-Keys.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-Manage-root-SSH-Keys.png\" alt=\"Manage Root's SSH Keys\" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<li>Once you click Create a New Key you have to fill the following :\n<ol>\n<li><strong>Key Name<\/strong>: The key&#8217;s name. that can be reconized by the root user. The defult name if leave it blank is id_rsa<\/li>\n<li><strong>Key Password<\/strong>: is the password phrase that protect this public key<\/li>\n<li><strong>Password (again)<\/strong>:Re-Type the password &#8220;its important to type a strong password&#8221; Or you can Click Password Generator to allow WHM Generate Strong Password<\/li>\n<li><strong>Key type<\/strong>:DSA \u2014 Provides quicker key generation and signing times.RSA \u2014 Provide quicker verification times.<\/li>\n<li>\n<p><strong>Key size<\/strong>:Greater key sizes are more secure, but they result in larger file sizes and slower authentication times.<\/p>\n<p><a class=\"lightbox-image-link\" title=\"Manage Root's SSH Generate Key\" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-Manage-root-SSH-Keys-generate-key.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-Manage-root-SSH-Keys-generate-key.png\" alt=\"Manage Root's SSH Generate Key\" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<li>\n<p>click Generate Key and if everythig is ok you should see result something like<\/p>\n<p><a class=\"lightbox-image-link\" title=\"SSH Key Image\" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-ssh-key-image.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-ssh-key-image.png\" alt=\"SSH Key Image\" width=\"125\" height=\"300\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Now you can go again to Manage root&#8217;s SSH Keys and from the list on action you can click Manage Authorization to to authorize the key if the status is not authorized<\/p>\n<p><a class=\"lightbox-image-link\" title=\"WHM SSH Authorize the Key \" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-ssh-key-aurhorize-key.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-ssh-key-aurhorize-key.png\" alt=\"WHM SSH Authorize the Key \" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<li>\n<p>To use the PuTTY client application now you have to create PuTTY PPK format key ,click View\/Download Key link from list in Private Keys<\/p>\n<p><a class=\"lightbox-image-link\" title=\"WHM SSH ROOT Key \" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-Manage-root-SSH-Keys-list.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-Manage-root-SSH-Keys-list.png\" alt=\"WHM SSH ROOT Key \" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<li>\n<p>from the Next Page on Private SSH Key id_rsa (PuTTY PPK format) and Enter the passphrase to unlock id_rsa for conversion &#8220;the passphrase is the password that you enter in the step number 4 on this document&#8221; and click convert ,Then you can copy the contents of the next page and save it on your local computer as ppk file extension and this file is ready to use it in PuTTY to connect to your server in secure connection.<\/p>\n<p><a class=\"lightbox-image-link\" title=\"WHM PuTTY PPK format\" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-ssh-key-PuTTY-PPK-format.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/whm-ssh-key-PuTTY-PPK-format.png\" alt=\"WHM PuTTY PPK format\" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<\/ol>\n<p><strong>Configure PuTTY to secure connection to your VPS Or Dedicated Server<br \/>\n <\/strong><br \/>\n Now after you saved your private key file ppk on your local computer ,you can now configure the PuTTY software , if you dont have the PuTTY installed on Your local computer you can download it from <a href=\"http:\/\/www.putty.org\">Download PuTTY Link<\/a>, then open your PuTTY and follow these steps to prepare the PuTTY to secure connection to your server:<\/p>\n<ol>\n<li>\n<p>Open PuTTY and from the session tab type your server IP<\/p>\n<p><a class=\"lightbox-image-link\" title=\"PuTTY Session Add Server IP\" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/PuTTY-Session.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/PuTTY-Session.png\" alt=\"PuTTY Session Add Server IP\" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<li>\n<p>Now be sure that you assign root Auto-Login User on PuTTY from Connection &gt;&gt; Data<\/p>\n<p><a class=\"lightbox-image-link\" title=\"PuTTY Connection &gt;&gt; Data Auto-Login User\" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/PuTTY-connection-Data-Login-Details.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/PuTTY-connection-Data-Login-Details.png\" alt=\"PuTTY Connection &gt;&gt; Data Auto-Login User\" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<li>\n<p>Now allow PuTTY to use the Private key ppk that you already prepare in the pervious section Add the file location from Connection &gt;&gt; SSH &gt;&gt; Auth &gt;&gt; on Private key file for authentication :<\/p>\n<p><a class=\"lightbox-image-link\" title=\"PuTTY Private key file for authentication &gt;&gt; Data Auto-Login User\" href=\"https:\/\/www.xsofthost.com\/knowledgebase\/PuTTY-connection-ssh-auth-private-key.png\" data-lightbox=\"roadtrip\" rel=\"lightbox[395]\"><br \/>\n <img loading=\"lazy\" class=\"thumbnail\" src=\"https:\/\/www.xsofthost.com\/knowledgebase\/PuTTY-connection-ssh-auth-private-key.png\" alt=\"PuTTY Private key file for authentication &gt;&gt; Data Auto-Login User\" width=\"250\" height=\"125\" \/><br \/>\n <\/a><\/p>\n<\/li>\n<\/ol>\n<p><strong><br \/>\n Connect To your VPS , Dedicate server using PuTTY SSH Key:<\/p>\n<p> <\/strong>Now once you click connect the screen should show as following, prompting you to enter the password that you already created first<\/p>\n<div class=\"cmd\">\n<div>Using username &#8220;root&#8221;.<\/div>\n<div>Authenticating with public key &#8220;imported-openssh-key&#8221;<\/div>\n<div>Passphrase for key &#8220;imported-openssh-key&#8221;:<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 What is SSH Protocol\u00a0 SSH Protocol allows you to secure file transfer and remote logins to your server over the internet. The connection via SSH is encrypted and allowing the secure connection between client program &#8220;PuTTY as example&#8221; and linux server. This document contains: Generate SSH Key from WHM Configure PuTTY to secure connection [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":363,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[50],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/395"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=395"}],"version-history":[{"count":4,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/395\/revisions"}],"predecessor-version":[{"id":399,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/395\/revisions\/399"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/363"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}