1.在终端执行:
ls -al ~/.ssh
2.终端出现文件id_rsa.pub 或 id_dsa.pub,跳过3、4,执行5
3.终端未出现id_rsa.pub 或 id_dsa.pub文件:
ssh-keygen -t rsa -C "your_email@example.com"
4.连续回车
5.输入
pbcopy < ~/.ssh/id_rsa.pub
6.在gitlab中添加复制的ssh key
1.在终端执行:
ls -al ~/.ssh
2.终端出现文件id_rsa.pub 或 id_dsa.pub,跳过3、4,执行5
3.终端未出现id_rsa.pub 或 id_dsa.pub文件:
ssh-keygen -t rsa -C "your_email@example.com"
4.连续回车
5.输入
pbcopy < ~/.ssh/id_rsa.pub
6.在gitlab中添加复制的ssh key
本文标题:gitlab配置ssh key
本文链接:https://www.haomeiwen.com/subject/goqsvftx.html
网友评论