0
votes

I am try to pull/clone git project from bitbucket with user www-data. The Deployment keys was created and added to Access keys of bitbucket. The server response that I have read access but when I try pull or clone - access denied.

www-data@server:~$ 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.
www-data@server:~$ 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 -- www-data@server
1
The two project/repos above, one where you git clone and the other where Bitbucket tells you the repositories the key can access, are identical?Chris
The same, access keys from this repository.moledet

1 Answers

0
votes

Access keys are associated with one or more specific repos, not with a project or user. If you're getting this message, then you'll need to add that access key to the repo(s) that need it.