I have set up ssh keys and if I test the connection with "ssh -T hg@bitbucket.org" or "ssh -T git@bitbucket.org" it says the connection is successful and I can use git or hg to connect to BitBucket. I am able to clone the repository but when I attempt to push committed changes I get
"Unauthorized
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists."
This happens for both SourceTree and the command line