Skip to main content

How to Troubleshoot Git Server Connection?

The reason why you can't connect to the Git server could be the following:

  • Incorrect host;
  • Incorrect private SSH key;

To ensure that you specified the correct host, verify that your host is one of these:

  • GitHub - github.com;
  • Bitbucket - bitbucket.org;
  • Gerrit - your Gerrit endpoint;
  • Gitlab - your GitLab endpoint.

The private key generated using the command must be added to the platform in the format:

-----BEGIN OPENSSH PRIVATE KEY-----
--------key-data--------
-----END OPENSSH PRIVATE KEY-----

The passphrase does not need to be specified.