2017-04-10 397 views
3

我剛剛建立了個人帳戶GitLab和我試圖遵循你如何找到你的GitLab主機名(測試你的SSH密鑰)?

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

的步驟來部署我的SSH密鑰來GitLab。我已經完成了第5步,並看到我的用戶設置「您的SSH密鑰」在我的SSH密鑰 - > SSH密鑰:

enter image description here

我想現在完成了可選的第6步,測試重點:

enter image description here

我GitLab用戶名是khpeek,所以我猜我的 'GitLab域' 是gitlab.com/khpeek。然而,測試命令

ssh -T [email protected]/khpeek 

產生一個錯誤消息:

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

顯然這是錯誤的主機名。什麼是正確的?

回答

6

如果您在使用gitlab.com然後Gitlab的域名就是gitlab.com所以你應該運行ssh -T [email protected]