git clone指定ssh key

vim ~/.ssh/config

Host code.aliyun.com #git项目里面的域名
  User git                        # 克隆用户
  IdentityFile /opt/aliyun_ssh_key/id_rsa # 私钥路径
  IdentitiesOnly yes

你可能感兴趣的:(git clone指定ssh key)