{"id":1027,"date":"2021-10-08T13:27:51","date_gmt":"2021-10-08T13:27:51","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2021\/10\/08\/5634532-how-to-generate-ssh-keys-and-add-them-to-hostinger-hpanel\/"},"modified":"2026-03-16T12:12:10","modified_gmt":"2026-03-16T12:12:10","slug":"5634532-how-to-generate-ssh-keys-and-add-them-to-hostinger-hpanel","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/5634532-how-to-generate-ssh-keys-and-add-them-to-hostinger-hpanel\/","title":{"rendered":"How to Generate SSH Keys and Add Them to Hostinger hPanel"},"content":{"rendered":"<p class=\"no-margin\">SSH is a very convenient and fast way to manage your hosting account if you have a <b>Premium<\/b> or above plan. To make it even faster and more secure, we <b>highly recommend <\/b>generating SSH keys and adding them to your hPanel. The process is as follows &#128071; <\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_1a752ac1d3\">Step 1 &mdash; Generate the keys<\/h2><p class=\"no-margin\">Depending on your system, there are these ways to generate SSH keys:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>Windows<\/b> &mdash; for Windows, you can use SSH clients such as <b><a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">PuTTY<\/a><\/b>; refer to<b> steps 1-3<\/b> in this tutorial: <b><a href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-generate-ssh-keys-on-putty\" target=\"_blank\" class=\"intercom-content-link\">How to Generate SSH Keys on PuTTY<\/a>.<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Unix-based systems <\/b>(e.g., macOS or Ubuntu) &mdash; you can generate SSH keys <b>straight from the terminal<\/b>; refer to <b>step 1<\/b> in this tutorial: <b><a href=\"https:\/\/www.hostinger.com\/tutorials\/ssh\/how-to-set-up-ssh-keys\" target=\"_blank\" class=\"intercom-content-link\">How to Set Up SSH Keys<\/a>.<\/b><\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">\n<\/p><h2 id=\"h_4c43791a9d\">Step 2 &mdash; Add keys to hPanel<\/h2><p class=\"no-margin\">Once you have your keys generated, all you need to do is open the <b>Public key<\/b> (usually <b>id_rsa.pub<\/b>) with any text editor and copy all of its contents. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Then go to the <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a> <\/b>section in your Hostinger account, click on<b> Manage <\/b>next to your site, search for <b>SSH access<\/b> on the sidebar, and click on it:<br>&#8203;<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/10\/aa48104d-f18c-41b1-9e27-200260dd1eaf.jpg\" width=\"250\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Scroll down and click on <b>Add SSH key<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/10\/6712cc22-f570-41ac-9fec-af535503ebae.jpg\"><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Make sure to <b><a href=\"\/support\/1583645-how-to-enable-ssh-access\" target=\"_blank\" class=\"intercom-content-link\">enable SSH access<\/a><\/b> before adding the SSH key &#128161; <\/p>\n<\/div><p class=\"no-margin\">Insert the <b>name <\/b>by which your SSH key will be saved, the <b>public key<\/b> itself, and click on <b>Add SSH key<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/10\/d0f27fd6-0b5a-4948-a456-97e3978a6e88.jpg\" width=\"498\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">That&rsquo;s it! Now that the SSH key is added, an SSH password won&rsquo;t be needed when <b><a href=\"\/support\/1583245-how-can-i-log-in-to-my-account-via-ssh\" target=\"_blank\" class=\"intercom-content-link\">logging in to your server<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">All the added SSH keys will be displayed on the same page, from where you can <b>edit or delete<\/b> them: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/10\/844facbf-8dca-4e80-81da-69b762ca0958.jpg\" width=\"500\"><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Only the <b>Public key<\/b> has to be added to hPanel. <b>Never share your Private key with anyone<\/b>. Your Private key should be kept on your local device only &#128161; <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Generating SSH keys and adding them to Hostinger\u2019s hPanel<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[235],"tags":[],"class_list":["post-1027","post","type-post","status-publish","format-standard","hentry","category-ssh-connection-and-ssh-keys"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/5634532-how-to-generate-ssh-keys-and-add-them-to-hostinger-hpanel\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/5634532-como-generar-claves-ssh-y-anadirlas-a-hpanel-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/5634532-comment-generer-des-cles-ssh-et-les-ajouter-a-hpanel-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/5634532-cara-membuat-dan-menambahkan-ssh-keys-di-hpanel-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/5634532-como-gerar-chaves-ssh-e-adiciona-las-ao-hpanel-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/5634532---ssh------hpanel\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1027"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1027\/revisions"}],"predecessor-version":[{"id":4152,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1027\/revisions\/4152"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}