您的位置:首页 > 其它

ADD SSH KEY TO GITLAB

2016-03-12 17:52 525 查看
1) Check if you already have a key (if you have it following command will give you some valid ouput):

cat ~/.ssh/id_rsa.pub

2) If you have it, skip to step 3. If not, generate key locally (Accept all the defaults, do NOT enter a passphrase):

ssh-keygen -t rsa –C "your-okta-id@thoughtworks.com"

3) Copy the content of the ssh key

cat ~/.ssh/id_rsa.pub | pbcopy

4) Paste the content in Gitlab >> Profile Settings >> SSH keys >> Add SSH key >> Key Text Box



5) Verify that it is working (you must get a welcome message)

ssh -T git@gitlab.freewheelers.bike 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: