How to Connect a Copado Version Control Repository in Copado
To leverage the best connection speeds, we recommend authenticating your Git Repository in the Copado application using the internal infrastructure SSH. In this case, all the traffic between the Copado Application and Copado Version Control remains within our infrastructure without going through the public internet.
To authenticate using the internal SSH, follow these steps:
- In Copado, create a new Git Repository record.
- Give your repository a name.
- Select the desired source format.
- Select SSH in Authentication Type.
- Since Copado Version Control is hosted within the Copado infrastructure, and in order to benefit from the fastest connection speed to your repository, don’t use the repository SSH URI provided on the repository page. Instead, build the SSH URI as described below:
- <clientName> with your Copado Version Control registered client name. You can get it from the repository page by selecting SSH and copying it from the URI provided.
- <username> with your username
- <repoName> with the repository name
- <domainName> = acme
- <username> = SalesOperations
- <repoName> = CRM
- Now you need to create a new pair of keys. To do so, click on Create SSH Keys.
- Scroll down to the Current Keys related list.
- Click on the View link next to the id_rsa.pub file and copy the content.
- In Copado Version Control, click on your profile and select Settings.
- Click on SSH/GPG Keys.
- On the Manage SSH Key section, click on Add Key.
- Give your key a name.
- Paste the public key that was copied into the Content box.
- When ready, click on Add Key.
Alternatively, and although not recommended, you can use the external SSH connection. In this case, the traffic between Copado Application and Copado Version Control will go through the public internet.
To authenticate using the external SSH, review the HTTPS vs SSH Authentication article to connect your repository via SSH. In this case, disregard the instruction to open Port 22.
Alternatively, if you want to connect to Copado Version Control locally through your IDE, please follow the process described in this article.
If your backend server is on Heroku, then use the HTTPs authentication protocol to connect to Copado Version Control.
Please review the HTTPS vs SSH Authentication article to connect your repository via HTTPS.