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]
上面的兩個'project/repo',一個是你'git clone',另一個是Bitbucket告訴你密鑰可以訪問的版本庫,是相同的? – Chris
同樣,從這個存儲庫訪問密鑰。 – moledet