10

I'm setting up a SSH key for the first time on Gitlab.com. I'm stuck at verifying that you can connect: ssh -T git@gitlab.example.com.

The gitlab.example.com you are supposed to replace with your Gitlab instance url but I keep getting "ssh: Could not resolve hostname : Name or service not known".

I'm using the Gitlab SaaS solution and have tried various formats, such as:

ssh -T git@gitlab.com/my-workspace-name
ssh -T git@gitlab.com:my-workspace-name
ssh -T git@gitlab.com/my-workspace-name/project-name

What is the correct format that should work?

Marty
  • 2,132
  • 4
  • 21
  • 47

1 Answers1

13

Correct format is ssh -T git@gitlab.com.

my-workspace-name is not part of the instance url.

1615903
  • 32,635
  • 12
  • 70
  • 99