2017-08-08 994 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