我有兩個Bitbucket帳戶。一個是辦公室,另一個是個人。現在,我還爲這些帳戶創建了兩個SSH密鑰並添加了密鑰,但現在似乎無法訪問我的個人帳戶。Bitbucket訪問錯誤與兩個不同的Bitbucket帳戶
當我嘗試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
第一個是我的辦公室和2一個是我的個人帳戶。任何想法我怎麼能解決這個問題?
不幸的是,這並沒有工作:(但我使用不同的方法工作,我會在另一個答案解釋。 –