Hi, when I try to push my local repo to my remote bitbucket one I get the following error message:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/master:refs/heads/master
Pushing to git@bitbucket.org:hdykiel/career-exploration.git
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Pushing to git@bitbucket.org:hdykiel/career-exploration.git
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Pushing to git@bitbucket.org:hdykiel/career-exploration.git
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Pushing to git@bitbucket.org:hdykiel/career-exploration.git
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above
I created a SSH key but when I try to add the key to bitbucket I get the error message "Invalid access key". I'm using a MAC. Can you help?
Thank you!
Can you please check if your key is loaded to ssh-agent? Use below command on terminal to check that
ssh-add -l
If no key is listed, please add it to the agent with below command,
ssh-add <path_to_key>
More like,
ssh-add ~/.ssh/id_rsa
If you have added the account in Sourcetree, you can go to accounts section in Preference window, click on edit key and copy the key associated with the account and login to bitbucket on browser and add the key there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.