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.
-
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:
-
Specify the private repository name, e.g.:
[email protected]:johndoe/test.git
in the Remote Git repository field:
-
Copy the content of the SSH public key field:
-
Go to the Github website and sign in.
-
Click an icon of your profile (top right corner).
-
Press the Settings button.
-
Navigate to the SSH and GPG keys tab on the left-hand side.
-
Click the New SSH key button.
-
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.
-
Come back to Plesk and press the Create button to clone the private repository.