第一步 生成对应的ssh key
1 后面输入你的用户名 或者 邮箱
2 输入一个独立的ssh key名字 区别之前的名字
第二步 编辑 config文件
在.ssh/目录下面
在config文件配置如下信息 对照你自己的远程git服务器域名 以及 本地生成sshke私钥名 以及 git用户添加
Host *.xxxxx.com
IdentityFile ~/.ssh/id_rsa_xxx
User git
第三步 添加ssh key 到你的git服务
~
第四步 添加成功后 正常用ssh key的方式 git clone项目即可