{"id":5847,"date":"2025-09-24T12:13:26","date_gmt":"2025-09-24T12:13:26","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=5847"},"modified":"2025-10-17T10:10:40","modified_gmt":"2025-10-17T10:10:40","slug":"how-to-deploy-from-private-github-repository-on-hostinger-docker-manager","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-deploy-from-private-github-repository-on-hostinger-docker-manager\/","title":{"rendered":"How to deploy from private GitHub repository on Hostinger Docker Manager?"},"content":{"rendered":"<p>You can launch projects from a <strong>private repository on GitHub.com<\/strong> to your server by using a deploy key, which is an <strong>SSH key<\/strong> that grants access to a single repository.<\/p><h2 id=\"generate\">How to set up deploy keys<\/h2><ol>\n<li>Connect to your server using SSH or a <strong>Browser terminal<\/strong>.<\/li>\n<li><span style=\"font-weight: 400\">Generate the SSH key inside the VPS:<\/span>\n<pre>ssh-keygen -t ed25519 -C \"my-repository\" -N \"\" -f ~\/.ssh\/my-repository<\/pre>\n<\/li>\n<li>Get and copy your public key contents:\n<pre>cat ~\/.ssh\/my-repository.pub<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6153\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/repository-key.png\" alt=\"Repository SSH key generation\" width=\"2090\" height=\"928\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/repository-key.png 2090w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/repository-key-300x133.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/repository-key-1024x455.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/repository-key-768x341.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/repository-key-1536x682.png 1536w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/repository-key-2048x909.png 2048w\" sizes=\"auto, (max-width: 2090px) 100vw, 2090px\" \/><\/p><\/li>\n<li><span style=\"font-weight: 400\">Navigate to your private GitHub repository.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Click <strong>Settings<\/strong> -&gt; <strong>Deploy Keys<\/strong>.<\/span><\/li>\n<li>Click <strong>Add deploy key<\/strong>.<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6108\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/image-19.png\" alt=\"GitHub deploy key\" width=\"1075\" height=\"889\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/image-19.png 1075w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/image-19-300x248.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/image-19-1024x847.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/09\/image-19-768x635.png 768w\" sizes=\"auto, (max-width: 1075px) 100vw, 1075px\" \/><\/li>\n<li>Enter the title for your deployment key name and paste the contents of <em>~\/.ssh\/my-repository.pub<\/em> to the Key field.<\/li>\n<li>Click the <strong>Add key<\/strong>.<\/li>\n<li><span style=\"font-weight: 400\">The deploy key should appear in the list<\/span>.<\/li>\n<\/ol><p>Y<span style=\"font-weight: 400\">our VPS is now able to access your private repository. <\/span>With this setup, you can securely deploy applications from private GitHub repositories directly on Hostinger Docker Manager.<\/p><p>For the official GitHub guide on adding a Deploy key, visit <a href=\"https:\/\/docs.github.com\/en\/authentication\/connecting-to-github-with-ssh\/managing-deploy-keys#set-up-deploy-keys\" target=\"_blank\" rel=\"noopener\">their documentation page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can launch projects from a private repository on GitHub.com to your server by using a deploy key, which is an SSH key that grants&#8230;<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[297],"tags":[],"class_list":["post-5847","post","type-post","status-publish","format-standard","hentry","category-docker-manager"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/5847","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\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=5847"}],"version-history":[{"count":10,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/5847\/revisions"}],"predecessor-version":[{"id":6155,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/5847\/revisions\/6155"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=5847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=5847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=5847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}