git通过SSH访问www-data到bitbucket
问题描述:
我尝试从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]
上面的两个'project/repo',一个是你'git clone',另一个是Bitbucket告诉你密钥可以访问的版本库,是相同的? – Chris
同样,从这个存储库访问密钥。 – moledet