2017-08-08 19 views
0

私はビットバケットからgitプロジェクトをユーザwww-dataでpull/cloneしようとしています。展開キーが作成され、bitbucketのアクセスキーに追加されました。私がにアクセスしたサーバーの応答は、ですが、プルまたはクローンを試みると、のアクセスが拒否されました。gitからssh経由で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

上記の2つの 'project/repo'は、' git clone'とBitbucketがあなたにキーがアクセスできるリポジトリを教えてくれるところです。 – Chris

+0

同じリポジトリのアクセスキーです。 – moledet

答えて

0

アクセスキーは、プロジェクトまたはユーザーではなく、1つ以上の特定のレポに関連付けられています。このメッセージが表示される場合は、そのアクセスキーを必要なレポに追加する必要があります。

+0

アクセスキーはこのリポジトリにのみ追加されました。 – moledet

関連する問題