【发布时间】:2017-07-13 11:25:04
【问题描述】:
我有两个 Bitbucket 帐户。一个用于办公室,另一个用于个人。现在我还为这些帐户创建了两个 SSH 密钥并添加了密钥,但现在我似乎无法访问我的个人帐户。
当我尝试git push -u origin develop 时,我收到此错误:
repository access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
这是我的.ssh/config 文件:
1 Host bitbucket.org
2 User git
3 Hostname bitbucket.org
4 IdentityFile ~/.ssh/id_rsa_bitbucket
5 TCPKeepAlive yes
6 IdentitiesOnly yes
7
8 Host bitbucket.org
9 User git
10 Hostname bitbucket.org
11 IdentityFile ~/.ssh/id_rsa
12 TCPKeepAlive yes
13 IdentitiesOnly yes
第一个用于我的办公室,第二个用于我的个人帐户。知道如何解决这个问题吗?
【问题讨论】:
标签: git ssh bitbucket bitbucket-server