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 "[email protected]" 

4.连续回车
5.输入

pbcopy < ~/.ssh/id_rsa.pub

6.在gitlab中添加复制的ssh key

你可能感兴趣的:(gitlab配置ssh key)