How to Add a Github Repository in Plesk

Category
  1. In your repository on github.gatech.edu, click the Clone or download button.
  2. Click the Use SSH link in the upper-right corner of the dialog.
    ''
  3. Click the copy to clipboard icon.
    ''
  4. Go to your domain under hosting.gatech.edu.
  5. In the Websites & Domains panel, click the Git link.
    ''
  6. In the Add Git Repository panel, make sure the Remote Git hosting option is selected.
  7. Paste the link you copied from your Github repository into the Remote Git repository box.
    ''
  8. To the right of the green arrow, you can accept the default or click the automatically deployed link and change it to manual deployment.
    ''
  9. Plesk will automatically generate an SSH public key. Copy the hash in the textbox.
    ''

The SSH public key can be added to an individual user account or to the repository as a deploy key.

Adding SSH Public Key to an Individual User Account

  1. Go to your repository on github.gatech.edu > Settings > SSH and GPG keys.
    ''
  2. Click the New SSH key button.
  3. In the SSH keys dialog, add a Title, paste the SSH key you copied from Plesk into the Key textbox, and click the Add SSH key button.
    ''
  4. Return to the Add Git Repository panel in Plesk and click the OK button.
  5. It takes a few seconds for Plesk to clone the repository.
  6. Once complete, you should see a your.domain.gatech.edu.git repository in Plesk.

Adding SSH Public Key to Repository as a Deploy Key

  1. Go into your repository in github.gatech.edu by clicking the name link.
    ''
  2. Click on Settings in the navigation bar.
    ''
  3. Click Deploy keys in the side menu.
    ''
  4. Click the Add deploy key button.
    ''
  5. In the Deploy keys dialog, add a Title and paste the SSH key you copied from Plesk in the Key textbox. Leave Allow write access box unchecked and click the Add key button.
    ''
  6. Return to the Add Git Repository panel in Plesk and click the OK button.
  7. The cloning process takes a few seconds to run.
  8. Once complete, you should see a your.domain.gatech.edu.git repository in Plesk.