Connecting GitLab and other Git repositories through SSH

Connecting a repository on GitLab

To connect a repository hosted on GitLab, download the key from repository connection wizard shown on this screenshot:

After you have downloaded the key, please use instructions in this screencast from GitLab:

If you want to add DeployBot's with a more restrictive permission, you can add it as a deploy key to your GitLab instance.

Connecting a repository hosted on your own servers

This is highly dependent on the way your server is setup to serve the repositories. In most cases, it should be enough to download the key from the connect repository wizard shown above and add that key into the ~/.ssh/authorized_keys file on your server for git or any other user you're using to access the repository.

Please make sure that permissions on the authorized_keys file are not too open and that the whole key from DeployBot should be posted as a single line in the file. To make sure that permissions are correct you can run the following command:

    chmod 0600 ~/.ssh/authorized_keys

Please note that this command needs to be run under the git user or any other user you're using to access the repository.

If you're having issues connecting to a repository on your server, please don't hesitate to contact our support, we are always glad to help.

Still need help? Contact Us Contact Us