{"id":1103,"date":"2021-01-13T15:51:16","date_gmt":"2021-01-13T15:51:16","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2021\/01\/13\/4792364-how-to-use-ssh-keys-at-hostinger-vps\/"},"modified":"2026-12-01T06:30:11","modified_gmt":"2026-12-01T06:30:11","slug":"4792364-how-to-use-ssh-keys-at-hostinger-vps","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4792364-how-to-use-ssh-keys-at-hostinger-vps\/","title":{"rendered":"How to use SSH keys at Hostinger VPS"},"content":{"rendered":"<p>To use SSH keys on a Hostinger VPS, generate an Ed25519 or ECDSA key, then add it during onboarding or later from the <strong>SSH keys<\/strong> tab on the <strong>Settings<\/strong> page of the VPS dashboard. RSA and DSA keys can&#8217;t be added. Saved RSA and DSA keys stay in your list with an outdated-algorithm warning, but you can&#8217;t select them for a VPS. You can delete a key and add a new one at any time.<\/p>\n<h2 id=\"what-are-ssh-keys-\">What are SSH keys?<\/h2>\n<p class=\"no-margin\">An SSH key is an access credential in the Secure Shell protocol. Its function is similar to that of usernames and passwords, except that the keys are primarily used for automated processes and for implementing single sign-on by system administrators and power users.<\/p>\n<h2 id=\"how-to-set-up-ssh-keys\">How to set up SSH keys<\/h2>\n<p class=\"no-margin\">First, generate an SSH key by referring to this comprehensive tutorial: <b><a data-click-id=\"hgr-post-content-link-how-to-set-up-ssh-keys\" class=\"intercom-content-link\" href=\"\/tutorials\/how-to-set-up-ssh-keys\/\" target=\"_blank\" rel=\"noopener\">How to Set Up SSH Keys<\/a><\/b>. You can add it to your VPS during the onboarding process:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2021\/01\/dd120ea0-21d7-44a5-ac8f-875cc5336b58.jpg\/public\" alt=\"Hostinger VPS add SSH key form with the SSH key field filled with an RSA public key\" data-media-id=\"4406\" \/><\/div>\n<p class=\"no-margin\">Alternatively, you can add it later from the <b><a data-click-id=\"hgr-post-content-link-vps\" class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/servers\/\" target=\"_blank\" rel=\"noopener\">VPS<\/a><\/b> section of your Hostinger dashboard. Head to the VPS section on your Hostinger dashboard, find your server and click on <b>Manage<\/b>.<\/p>\n<p class=\"no-margin\">Then, navigate to the <b>Settings<\/b> page from the sidebar, select the SSH keys tab, and click on <b>Add SSH key<\/b>:<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-20165\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-27.png\/public\" alt=\"\" width=\"1642\" height=\"649\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-27.png\/w=1642,fit=scale-down 1642w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-27.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-27.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-27.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-27.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1642px) 100vw, 1642px\" \/><\/div>\n<p class=\"no-margin\">Once it\u2019s added, you can delete it and add a new one whenever needed by clicking on the <b>Delete<\/b> button next to the added key. SSH keys with the comment <code>#hostinger-managed-key<\/code> in <code>\/root\/.ssh\/authorized_keys<\/code> are temporary keys added by the Hostinger VPS Web Console, as explained in <a data-click-id=\"hgr-post-content-link-what-the-hostinger-telemetry-file-and-qemu-guest-agent-do-on\" href=\"https:\/\/www.hostinger.com\/support\/what-the-hostinger-telemetry-file-and-qemu-guest-agent-do-on-hostinger-vps\/\">What the hostinger-telemetry file and QEMU guest agent do on Hostinger VPS<\/a>.<\/p>\n<p>Your SSH key is now added to your VPS, and you can use it to connect over SSH.<\/p>\n<p class=\"no-margin\"><b>Additional resources<\/b><\/p>\n<ul>\n<li>\n<p class=\"no-margin\">Feel free to check our collection of <b><a data-click-id=\"hgr-post-content-link-vps-tutorials\" class=\"intercom-content-link\" href=\"\/tutorials\/vps\/\" target=\"_blank\" rel=\"noopener\">VPS Tutorials<\/a> <\/b>and<b> <\/b><b><a data-click-id=\"hgr-post-content-link-knowledge-base-articles\" class=\"intercom-content-link\" href=\"https:\/\/support.hostinger.com\/en\/collections\/944797-vps\" target=\"_blank\" rel=\"noopener\">Knowledge Base articles.<\/a><\/b><\/p>\n<\/li>\n<li>See <a data-click-id=\"hgr-post-content-link-how-to-connect-to-your-hostinger-vps-via-ssh\" href=\"\/support\/5723772-how-to-connect-to-your-vps-via-ssh-at-hostinger\/\">How to connect to your Hostinger VPS via SSH<\/a> for other details about connecting to your VPS over SSH.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Setting up SSH keys on your VPS<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[199],"tags":[],"class_list":["post-1103","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4792364-how-to-use-ssh-keys-at-hostinger-vps","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4792364-como-usar-llaves-ssh-en-vps-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4792364-comment-utiliser-les-cles-ssh-sur-vps-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4792364-bagaimana-cara-menggunakan-ssh-key-di-vps-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/4792364-como-usar-as-chaves-ssh-no-vps-na-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1103","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=1103"}],"version-history":[{"count":9,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1103\/revisions"}],"predecessor-version":[{"id":26455,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1103\/revisions\/26455"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}