首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >gitlab配置ssh key

gitlab配置ssh key

作者头像
week
发布2018-08-24 14:27:22
6240
发布2018-08-24 14:27:22
举报
文章被收录于专栏:用户画像用户画像

一、生成ssh key

Last login: Wed Jan  3 21:23:25 on ttys000
jiangxingqideMacBook-Pro:~ jiangxingqi$ ssh-keygen -t rsa -C “xingqijiang@sohu-inc.com”
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/jiangxingqi/.ssh/id_rsa): 
/Users/jiangxingqi/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/jiangxingqi/.ssh/id_rsa.
Your public key has been saved in /Users/jiangxingqi/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:NGqbgh2QjnwbuhPJyTV+lXvAvbX7jM1Da6UvTT7dfGQ “xingqijiang@sohu-inc.com”
The key's randomart image is:
+---[RSA 2048]----+
|                 |
|   .             |
|  o   . =        |
|.o +   B o .     |
|+.*oo + S o .    |
| *o+o+ + o . . oE|
| .o.+ o .   o B+o|
| ..  .     .=* +=|
| ..        .o=+.o|
+----[SHA256]-----+

二、查看

jiangxingqideMacBook-Pro:~ jiangxingqi$ cat ~/.ssh/id_rsa.pub

三、gitlab profile add an ssh key

四、验证

jiangxingqideMacBook-Pro:~ jiangxingqi$ ssh  -T git@git.tv.sohuno.com
Welcome to GitLab, 姜兴琪(视频/实习生)!
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年01月04日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档