Git 服务配置不同的私钥
2016-09-06 本文已影响25人
darebeat
vi ~/.ssh/config
# Host *.workdomain.com
# IdentityFile ~/.ssh/id_rsa.github
# User git
Host git.coding.net github.com 172.16.0.*
User username
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa.github