Hi,
I was working with bitbucket and Sourcetree on one of my projects. I did a Mac OS update and now I am unable to push or pull from my remote repositories.
The error shows as below:
Pushing to <username>@bitbucket.org:DevZBubbly/enocean-pwm.git
<username>@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.
Pushing to <username>@Bitbucket.org:DevZBubbly/enocean-pwm.git
<username>@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.
Pushing to <username>@Bitbucket.org:DevZBubbly/enocean-pwm.git
<username>@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.
Pushing to <username>@Bitbucket.org:DevZBubbly/enocean-pwm.git
<username>@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.
How can I resolve the issue?
Hi,
macOS has a habit of booting SSH keys out of the agent and when it does this is the result. You can resolve it by going to the command line and running
ssh-add ~/.ssh/your-key-name
And entering a passphrase if necessary. We are continually trying to stomp out issues around this and apologize for the hassle.
Brian Ganninger
Senior Mac Developer, Sourcetree
Thanks Brian.
I generated a new public SSH key, added it in the bitbucket and it is working now.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.