{"id":936,"date":"2019-12-16T11:53:24","date_gmt":"2019-12-16T10:53:24","guid":{"rendered":"https:\/\/www.combell.nl\/en\/help\/?post_type=ht_kb&#038;p=936"},"modified":"2020-10-13T13:09:28","modified_gmt":"2020-10-13T11:09:28","slug":"create-an-ssh-key-to-log-in-to-your-hosting-via-ssh-without-a-password","status":"publish","type":"ht_kb","link":"https:\/\/www.combell.nl\/en\/help\/kb\/create-an-ssh-key-to-log-in-to-your-hosting-via-ssh-without-a-password\/","title":{"rendered":"Create an SSH key for your hosting"},"content":{"rendered":"<p>SSH is a secure way to connect to your hosting package. It is a better alternative to FTP. In this article we explain how you make a connection using an SSH key.<\/p>\n<p>Also read:\u00a0 <a href=\"https:\/\/www.combell.nl\/en\/help\/kb\/connect-to-your-hosting-via-ssh\/\">Make an SSH connection via your computer<\/a> \u00a0(with Terminal on Mac or Putty on Windows).<\/p>\n<h4>IN THIS ARTICLE:<\/h4>\n<ul>\n<li><a href=\"#one\">Step 1: Create your SSH key<\/a><\/li>\n<li><a href=\"#two\">Step 2: Enter your SSH key on the control panel<\/a><\/li>\n<\/ul>\n<h2 id=\"one\">Step 1: Create your SSH key<\/h2>\n<p>To use SSH, you need your own SSH key. You create it via your own computer. How to do this is explained below.<\/p>\n<div class=\"mks_tabs horizontal\"><div class=\"mks_tabs_nav\"><\/div>\n<div class=\"mks_tab_item\"><div class=\"nav\">Windows<\/div>\n<p><strong>Follow these steps to create an SSH key with PuTTY:<\/strong><\/p>\n<ol>\n<li><a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\" target=\"_blank\" rel=\"noopener\">You can download a PuTTY private \/ public key generator at this address<\/a> .<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13609\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a85ce3dc00b10dadac12.png\" alt=\"\" width=\"552\" height=\"200\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13611\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a85fe3dc00fa07adac14.png\" alt=\"\" width=\"209\" height=\"45\" \/><\/li>\n<li>Run the downloaded file.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13602\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a8b0e3dc00220eadac12.png\" alt=\"\" width=\"495\" height=\"481\" \/><\/li>\n<li>Click on the Generate button.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13603\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a8b5e3dc00c60eadac14.png\" alt=\"\" width=\"492\" height=\"477\" \/><\/li>\n<li>To generate even more randomness, move your cursor over the blank area.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13604\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a8b8e3dc002d0fadac12.png\" alt=\"\" width=\"491\" height=\"475\" \/><\/li>\n<li>Enter a password and confirm again.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13605\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a8c0e3dc00240fadac12.png\" alt=\"\" width=\"492\" height=\"475\" \/><\/li>\n<li>Click Save private key and Save public key, and save the files in a place of your choice.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13606\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a8d3e3dc00300fadac12.png\" alt=\"\" width=\"684\" height=\"480\" \/><\/li>\n<li>You must configure the private key in your SSH client. In PuTTy you do that from SSH&gt; Auth.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13607\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a8d7e3dc00220eadac14.png\" alt=\"\" width=\"462\" height=\"443\" \/><\/li>\n<li>You can copy the public key directly from the generator window. You will find it at the top of the field under the text &#8220;Public key for pasting into OpenSSH authorized_keys file&#8221;.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13608\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/5645a8dbe3dc000c0fadac12.png\" alt=\"\" width=\"493\" height=\"480\" \/><\/li>\n<\/ol>\n<\/div>\n<div class=\"mks_tab_item\"><div class=\"nav\">MacOS<\/div>\n<p><strong>Follow these steps to create an SSH key in MacOS:<\/strong><\/p>\n<ol>\n<li>Open &#8220;Terminal&#8221; and enter the following command to generate a new SSH key:\n<pre>  ssh-keygen -t rsa<\/pre>\n<\/li>\n<li>When the message &#8220;Enter file in which to save the key&#8221; appears, simply click &#8220;Enter&#8221; to save it in the suggested folder.<\/li>\n<li>Terminal will ask you for a password for your SSH key. Choose a strong password. Your computer will request this every time you connect via SSH.<\/li>\n<li>Confirm your password and you have created an SSH key.<\/li>\n<\/ol>\n<p><strong>Follow these steps to copy your SSH key to your clipboard:<\/strong><\/p>\n<ol>\n<li>Open &#8220;Terminal&#8221; and enter the following command to list the SSH keys in your .ssh folder:\n<pre>\u00a0 ls -lh ~ \/ .ssh<\/pre>\n<\/li>\n<li>Run the following command to copy the SSH key to your clipboard:\n<pre>\u00a0 pbcopy &lt;~ \/ .ssh \/ id_rsa.pub<\/pre>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<h2 id=\"two\">Step 2: Enter your SSH key on the control panel<\/h2>\n<p><strong>Follow these steps in the <a href=\"https:\/\/my.combell.nl\/en\" target=\"_blank\" rel=\"noopener\">control panel<\/a>:<\/strong><\/p>\n<ol>\n<li>Go to &#8220;My products&#8221;&gt; &#8220;Web hosting&#8221;&gt; Click on &#8220;Managed hosting&#8221; next to the the domain for which you want to consult the hosting.<\/li>\n<li>In the menu on the left you choose &#8220;FTP &amp; SSH&#8221; &gt; &#8220;FTP&#8221;.<\/li>\n<li>Click on the toggle on the right to activate SSH.<\/li>\n<li>Scroll down and click on the link \u201cAdd&#8221; to add your SSH-key<\/li>\n<li>Add your new SSH key (or assign a key you already have in your hosting package) and click on &#8220;Add SSH key&#8221;<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17474\" src=\"https:\/\/www.combell.nl\/en\/help\/wp-content\/uploads\/Screenshot-2020-10-13-at-13.08.57.png\" alt=\"add ssh key\" width=\"2258\" height=\"1312\" \/>.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSH is a secure way to connect to your hosting package. It is a better alternative to FTP. In this article we explain how you make a connection using an SSH key. Also read:\u00a0 Make an SSH connection via your computer \u00a0(with Terminal on Mac or Putty on Windows). IN&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[87,16],"ht-kb-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/ht-kb\/936"}],"collection":[{"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/comments?post=936"}],"version-history":[{"count":14,"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/ht-kb\/936\/revisions"}],"predecessor-version":[{"id":3407,"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/ht-kb\/936\/revisions\/3407"}],"wp:attachment":[{"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/media?parent=936"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/ht-kb-category?post=936"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.combell.nl\/en\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}