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
project/repo
s above, one where yougit clone
and the other where Bitbucket tells you the repositories the key can access, are identical? – Chris