{"id":1348,"date":"2019-02-08T10:36:09","date_gmt":"2019-02-08T10:36:09","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583773-how-to-add-your-ssh-key-to-github-bitbucket-in-hostinger\/"},"modified":"2026-03-16T12:12:15","modified_gmt":"2026-03-16T12:12:15","slug":"1583773-how-to-add-your-ssh-key-to-github-bitbucket-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583773-how-to-add-your-ssh-key-to-github-bitbucket-in-hostinger\/","title":{"rendered":"How to Add Your SSH Key to GitHub\/Bitbucket in Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Adding your SSH key to GitHub or Bitbucket, will allow you to deploy from a private repository and enable seamless repository access. Just follow these steps:<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_e14281ca8a\">Step 1 &ndash; Generate an SSH Key<\/h2><p class=\"no-margin\">Go to <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a><\/b> &rarr; <b>Manage. <\/b>In the left sidebar, search for GIT and click on it:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/4ec7f26b-5ff9-4deb-a1da-fa83dd935089.jpg\"><\/div><p class=\"no-margin\">Next, click on <b>Generate 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\/2019\/02\/c655a68b-1f53-4743-bb3e-259dcbc4b283.jpg\"><\/div><p class=\"no-margin\">Once generated, <b>copy<\/b> it in order to add it to your GitHub or Bitbucket account in the next step.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_56ec9928d2\">Step 2 &ndash; Add the SSH Key <\/h2><p class=\"no-margin\">Check the instructions according to your preferred repository service:<\/p><p class=\"no-margin\">\n<\/p><h3 id=\"h_71033bc4c9\">GitHub <\/h3><p class=\"no-margin\">After logging into <b><a href=\"https:\/\/github.com\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">GitHub<\/a><\/b>:<\/p><ol>\n<li>\n<p class=\"no-margin\">Click your profile photo and select <b>Settings<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">In the user settings sidebar, click <b>SSH and GPG keys<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click <b>New SSH key<\/b> or <b>Add SSH key<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">In the <b>Title <\/b>field, add a descriptive label for the new key<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Paste your key into the <b>Key<\/b> field<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click <b>Add SSH key<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If prompted, confirm your GitHub password<\/p>\n<\/li>\n<\/ol><h3 id=\"h_cb37e54b0e\">Bitbucket<\/h3><p class=\"no-margin\">After logging into <b><a href=\"https:\/\/bitbucket.org\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Bitbucket<\/a><\/b>:<\/p><ol>\n<li>\n<p class=\"no-margin\">Go to <b>View Profile<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click on<b> Settings<\/b>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Go to the <b>Access Keys<\/b> option and click on <b>Add key<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Paste your key and save the changes<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Deplying your website from a git repository using SSH<\/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-1348","post","type-post","status-publish","format-standard","hentry","category-ssh-connection-and-ssh-keys"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583773-how-to-add-your-ssh-key-to-github-bitbucket-in-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583773-como-anadir-tu-clave-ssh-a-github-bitbucket-en-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583773-como-adicionar-minha-chave-ssh-ao-github-bitbucket\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1348","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=1348"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1348\/revisions"}],"predecessor-version":[{"id":5051,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1348\/revisions\/5051"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}