2017-08-08 66 views
0

我嘗試從bitbucket中與用戶www-data拉/克隆git項目。部署密鑰已創建並添加到bitbucket的訪問密鑰。服務器迴應,我有讀取權限,但當我嘗試拉或克隆 - 訪問被拒絕git通過SSH訪問www-data到bitbucket

[email protected]:~$ git clone [email protected]:project/repo.git 
Cloning into 'repo'... 
repository access denied. deployment key is not associated with the requested repository. 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
[email protected]:~$ ssh -T [email protected] 
authenticated via a deploy key. 


You can use git or hg to connect to Bitbucket. Shell access is disabled. 

This deploy key has read access to the following repositories: 

project/repo: wwwdata2 -- [email protected] 
+0

上面的兩個'project/repo',一個是你'git clone',另一個是Bitbucket告訴你密鑰可以訪問的版本庫,是相同的? – Chris

+0

同樣,從這個存儲庫訪問密鑰。 – moledet

回答

0

訪問密鑰與一個或多個特定回購,而不是與項目或用戶關聯。如果您收到此消息,則需要將該訪問密鑰添加到需要它的回購站。

+0

訪問鍵僅添加到此存儲庫。 – moledet