How to connect to private Github repositories using Plesk and Git? Print

  • 8

  1. Go to the Github website.

  2. Click the Sign in button:

    screenshot.png

  3. Specify a Github username and a password in the corresponding Username or email address and Password fields:

    screenshot_2.png

  4. Click an icon of your profile:

    screenshot_3.png

  5. Press the Settings button:

    screenshot_4.png

  6. Navigate to the SSH and GPG keys tab:

    screenshot_5.png

  7. Click the New SSH key button:

    screenshot_6.png

  8. Log in to your Plesk control panel.

  9. Go to Domains > example.com > Git.

    Note: change the "example.com" domain in the path above to the correct one.

    and make sure that the Remote Git hosting like GitHub or BitBucket tab is selected:

    screenshot_7.png

  10. Specify the private repository name, e.g.:

    git@github.com:johndoe/test.git

    in the Remote Git repository field:

    screenshot_8.png

  11. Copy the content of the SSH public key field:

    screenshot_9.png

    back to the Github website, specify the key name in the Title field, insert the copied key from Plesk to the Key field and press the Add SSH key button:

    screenshot_10.png

  12. Come back to Plesk and press the OK button to clone the private repository.


Was this answer helpful?

« Back