配置多个git用的ssh key

参考 http://www.sail.name/2018/12/16/ssh-config-of-mac/

有一点注意 Host 的名字和 HostName改为一致. 因为从git仓库复制的地址是全程.

Host code.aliyun.com
  HostName code.aliyun.com
  User git
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/id_rsa_aliyuncode
posted @ 2021-07-16 16:30  飞云~风之谷  阅读(36)  评论(0)    收藏  举报