SSH Key Management

Now in the self-hosted version, you can manage several keys from a single point as well as you can connect different repositories from different git service providers by just using a single SSH Key for all.

Earlier what used to happen is that after connecting the SSH URL of the repository you had to generate an SSH Key and then you had to add the key to your account. This usually creates a tedious way to generate a bunch of keys for every single repository and add them to the git repository service providers such as GitHub, Gitlab, Bitbucket, and more, but now to make it easier we have SSH Key management system which enables you to have a single SSH Key for all your repository across all the Git service providers.

Generate SSH Key in Prod

To generate an SSH key, go to Account Settings > SSH Key Management.

image

In the next window, you can see the list of SSH Keys which are already been generated. To generate a new key click on Add Key.

Provide a name for your key. Add a paraphrase to generate SSH key with, if needed and select the key pair type from RSA and ED25519 and then click Generate Key & Save. This will generate an SSH key which can now be re-used across various services.

The Studio will use DronaHQ as default paraphrase if not provided from the user while generating SSH Key.

Generate SSH Key in On-Prem version

To generate an SSH key, go to Account Settings > Integrations.

You can find the option of SSH Key Management and then click on it.

In the next window, you can see the list of SSH Keys which are already been generated. To generate a new key click on Add Key.

Provide a name for your key and then click Generate Key & Save. This will generate an SSH key which can now be re-used across various Apps’ Git repos.

Edit SSH Key in Prod

You also have the option to edit the name of the SSH key once generated. Simply click on 3 dots for options and click Edit, edit the Key Name and click Save.

Edit SSH Key in On-Prem version

You also have the option to edit the name of the SSH key once generated. Simply click on 3 dots for options and click Edit, edit the Key Name and click Save.

Using generated SSH Key

Now that you have generated your SSH Key from the SSH Key Management feature, you can add this SSH key across various Git service providers in their settings. You can refer here to view how to add SSH Keys to Git service accounts.

Open your app and Go to Publish > Git Operation.

git operation

On the Configure window, paste the SSH URL of the repository and there you can find the toggle button for Use existing key, toggle that on and then select your earlier generated key from the SSH Management.

Click on Test & Save Connection. It will display a connection successful message and your app is now connected to your repository.

NOTE: A single generated SSH key can be used by different repositories, different Git service providers, different apps, and also different users.