How do you find your GitLab hostname (to verify your SSH key)?

I just created a personal GitLab account and am trying to follow the steps on

https://gitlab.com/help/ssh/README

to deploy my SSH key to GitLab. I followed up to step 5 and will see my SSH key among "your SSH keys" in my user settings -> SSH:

enter image description here

I am trying to complete an additional sixth step by checking the key:

enter image description here

My username is GitLab khpeek

, so I guessed that my GitLab domain is gitlab.com/khpeek

. However, the check command

ssh -T git@gitlab.com/khpeek

      

an error message is displayed:

ssh: Could not resolve hostname gitlab.com/khpeek: Name or service not known

      

This appears to be the wrong hostname. What would be right?

+3


source to share


1 answer


If you are using Gitlab at gitlab.com then the domain is simple gitlab.com

, so you should runssh -T git@gitlab.com



+10


source







All Articles