旧帖:/t/313047
不同的 host 的主机在 config 中配置 hostname 就可以了。现在我这么配置的
# /home/www-data/.ssh/config
Host git.coding.net
HostName git.coding.net
User git
IdentityFile ~/.ssh/weixin
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/project2
但是现在我在 github 上托管了两个项目,也就是说同一个 host 有两个部署密钥。这种情况怎么设置 config 文件?
放狗后说是要把 host 改成*.git的名字。。测试无效。。
CentOS 6.8 / git 1.7.1


