I have set up an SSH private/public key. Loaded the public key into my ACCOUNT in BitBucket. When I execute ssh -T git@bitbucket.org, I get:
logged in as bdlawrence13
You can use git or hg to connect to Bitbucket. Shell access is disabled.
However, when I attempt to push using Git GUI, I get the following error:
Pushing to git clone git@bitbucket.org:bdlawrence13/dwcprovisioning.git
git clone git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I have no problem pulling from the repository IF I put the public key in the repository and not my account. But then, I still cannot push.
With the key in my account, I cannot pull or push from this repository, even though I own the repository.
When the key is in the repository and not my account I get the error:
Pushing to git clone git@bitbucket.org:bdlawrence13/dwcprovisioning.git
Unauthorized
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists..
The key in the repository, running ssh -T git@bitbucket.org I get:
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:
bdlawrence13/dwcprovisioning
Cannot figure out how to resolve this.