problem SSH Key

Hi, I have serious problems to use Sourcetree with bitbuket, I installed the SSH Key as per your procedure, deleted the old keys and made new procedure, it works for a day then to restart me from this:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin  Permission denied (publickey).  fatal: Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists. Permission denied (publickey).  fatal: Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists. Permission denied (publickey).  fatal: Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists. 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

1 answer

This widget could not be displayed.

Hi Piero, can you run this command in your terminal and see if your machine is offering the right key:

ssh-add -L

Also this one, it will tell you which username is using to authenticate:

ssh -Tv git@bitbucket.org

If you need further assistance, let us know which Sourcetree and OS version do you have.

Cheers!

Ana

Hi, I launched, these two commands, and I see the key and made the debug, with this solution?
The problem is that if restart mac the key no longer works!

mac version: 10.13.1
SourceTree: 2.6.3

How do I solve this problem?

Piero

So you're using Mac? In that case looks like you're affected by this issue on their side, you can see it at MacOs Sierra doesn't remember SSH keys between reboots. Please read through it to find possible solutions, I hope that helps you!

Best regards,

Ana

Sorry, but I didn't really understand what I have to do?

Hi Piero, if you're affected by this, this is an issue on Apple's side. There are solutions posted in their thread, so please read through it to find which one works for you :)

If the SSH key keeps disappearing every time you reboot your computer, you might need to contact them s they can help you with this bug. 

If there's anything else we can do from our side, let us know!

Regards,

Ana

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

874 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you