Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to my remote servers through Sourcetree

DevZBubbly
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 31, 2018

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?

 

1 answer

1 accepted

1 vote
Answer accepted
bgannin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 2, 2018

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

DevZBubbly
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2018

Thanks Brian.

I generated a new public SSH key, added it in the bitbucket and it is working now.

Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events