首页 > 其他 > 详细

gitlab 配置 sshkey 记录

时间:2020-04-22 10:46:26      阅读:74      评论:0      收藏:0      [点我收藏+]

1、打开本地git bash 使用下边命令

ssh-keygen -t rsa -C ‘xxx@xxx.com‘ 然后回车(-C 参数是你的邮箱地址)

 

2、会出现:

Enter file in which to save the key (/c/Users/pc/.ssh/id_rsa):

Enter file in which to save the key (/c/Users/pc/.ssh/id_rsa):

3、如果你的.ssh/id_rsa已经有了,则会出现:/Users/yzq/.ssh/id_rsa already exists.

  Overwrite (y/n)?

  y 覆盖

  n 不覆盖

4、设置6位密码

5、查看本机公钥ssh,获取它

cd ~/.ssh
ls(查看目录是否有id_rsa.pub文件)
查看公钥:cat id_rsa.pub    或者vim id_rsa.pub

 

6、 例图技术分享图片

 

 

7、获取了公钥ssh,到gitlab配置

技术分享图片

 

 

 

 

gitlab 配置 sshkey 记录

原文:https://www.cnblogs.com/chaojimali/p/12750345.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!