I use SourceTree + BitBucket combination with SSH setup on my Mac. It used to work fine.
Haven't used this Mac to code for a while. Today I tried to do fetch / push, all failed with this permission denied (public key) issue. I've done some research, tried the solutions in this article https://confluence.atlassian.com/bitbucket/troubleshoot-ssh-issues-271943403.html, but still stuck. Here're my steps:
So now I'm really stuck. I think it might be easier to just reset the SSH key in SourceTree, but couldn't find any references online regarding how to achieve that. Any suggestions?
Figured this out. It turns out I tried to ssh-add the .pub file. The correct file would be the one with the same name but without the .pub extension.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.