Plesk

Is it possible to connect to private Github repositories using Plesk Git extension?

Question

Is it possible to connect to private Github repositories by using Plesk Git extension?

Answer

Yes, it is possible by establishing via SSH key generated by Plesk:

Note: You should already have a repository set up on GitHub.

  1. Log in to Plesk.

  2. Go to Domains > example.com > Git and click Add Repository.

    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:

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

    git@github.com:johndoe/test.git

    in the Remote Git repository field:

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

  5. Go to the Github website and sign in.

  6. Click an icon of your profile (top right corner).

  7. Press the Settings button.

  8. Navigate to the SSH and GPG keys tab on the left-hand side.

  9. Click the New SSH key button.

  10. 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.

  11. Come back to Plesk and press the Create button to clone the private repository.

Additional information

Using remote Git hosting