Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to verify ssh key on Gitlab.com

Tags:

git

ssh

gitlab

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 [email protected].

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 [email protected]/my-workspace-name
ssh -T [email protected]:my-workspace-name
ssh -T [email protected]/my-workspace-name/project-name

What is the correct format that should work?

like image 750
Marty Avatar asked Nov 28 '25 22:11

Marty


1 Answers

Correct format is ssh -T [email protected].

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

like image 100
1615903 Avatar answered Nov 30 '25 12:11

1615903



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!