更新时间:2023-11-22 20:08:34
Host bitbucket bitbucket.org
?您不会在一个 Host
部分声明多个条目名称.
Host bitbucket bitbucket.org
? You don't declare multiple entry names on one Host
section.
我希望在 ssh 配置文件中看到声明多个键:
I would expect to see in a ssh config file declaring multiple keys:
Host bitbucketuserA
Hostname bitbucket.org
IdentityFile ~/.ssh/id_rsa
User git
Host bitbucketuserB
Hostname bitbucket.org
IdentityFile ~/.ssh/other
User git
你会像
bitbucketuserA:userA/myrepo1
bitbucketuserB:userB/myrepo2
(这类似于我为如何从已添加 SSH 密钥的办公室计算机处理个人 GitHub 存储库的建议)与工作相关的 GitHub 帐户?")