All Collections
Files management
SSH connection and SSH keys
How to add my SSH key to Github/Bitbucket?
How to add my SSH key to Github/Bitbucket?
Updated over a week ago

Keen on deploying everything from GitHub or Bitbucket to Hostinger? Well, you are able to do that now. Simply add your SSH key to your GitHub/Bitbucket and deploy your content to your website immediately!

Firstly, to deploy from the Private repository, you have to add your SSH key to Github or Bitbucket first.

Secondly, enter your public SSH repository HTTP URL, branch name and install path. Install path can be left empty and take notice that the application will be deployed directly to public_html directory.

Note! Install path directory must not contain any files or folders. Otherwise, deployment will fail.

If you're using GitHub, you should do the following:

  1. Login to GitHub.

  2. In the upper-right corner of any page, click your profile photo, then click Settings.

  3. In the user settings sidebar, click SSH and GPG keys.

  4. Click New SSH key or Add SSH key.

  5. In the Title field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key Personal MacBook Air.

  6. Paste your key into the Key field.

  7. Click Add SSH key.

  8. If prompted, confirm your GitHub password.

Using Bitbucket? Follow this:

  1. Login to Bitbucket.

  2. Go to View Profile

  3. Click on Settings.

  4. Go to Access Keys option:

  5. Click Add key. You're done!

Did this answer your question?