GitLab配置ssh key
1.打开本地git bash,使用如下命令生成ssh公钥和私钥对
ssh-keygen -t rsa -C ‘‘ 然后一路回车(-C 参数是你的邮箱地址)
2.然后会出现:Enter file in which to save the key (/Users/yzq/.ssh/id_rsa):
回车
3.如果你的.ssh/id_rsa已经,则会出现:/Users/yzq/.ssh/id_rsa already exists.
Overwrite (y/n)? y
输入:y (重新覆盖)
输入:n (不覆盖)
4.设置你的密码(位数不要太短,尽量设置6位)
5.现在只需要查看本机ssh公钥,获取得到它
cd ~/.ssh
ls(查看目录是否有id_rsa.pub文件)
查看公钥:cat id_rsa.pub 或者vim id_rsa.pub
获取到的那一大段,就是我们需要的ssh key,复制下来,包括前面和后面的,给到下图配置,即可完成GitLab配置ssh key
在个人中心的profile setting -SSHkey里面,
相关推荐
LiHansiyuan 2020-06-14
returnspace 2020-06-21
hulao 2020-06-12
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26