5

I am new with BitBucket and SourceTree and I try to push my Rep. in SourceTree for windows with Git to BitBucket but it gives me this error:

conq: repository access denied. access via a deployment key is read-only.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I set a deployment key in BitBucket by my public key and the ssh key agent is running with my private key. I have owner access right. I think I missed a configuration that results in this error, any suggestion?

kemara
  • 116
  • 2
  • 6
  • I found the reason for that. The ssh key in the user account (not the deployment key) must be loaded **solely** in the ssh agent, otherwise (not added or deployment key is added as well) it will give this error. – kemara Apr 30 '13 at 12:57

2 Answers2

8

Make sure you're not adding the SSH key under "Deployment Key" in your Bitbucket repository's settings. What you need to do is add the SSH key under "Manage Account" (Click your Avatar)> "SSH Keys". It's explained here

Community
  • 1
  • 1
osehgol
  • 111
  • 1
  • 5
0

Don't create deployment key, go to manage account and click ssh keys then add your key

gettosin4me
  • 3
  • 1
  • 1