I'm working on a project in a private repository on https://www.bitbucket.com.
I'm coding it locally, then staging, commiting and pushing the update via BitBucket's / Atlassian's Windows Git client, Sourcetree.
After that, I'm pulling the files from a remote shared server, which requires SSH authentication.
I've tried the following in order to connect the git repo with the BitBucket account:
- Launched the embedded Sourcetree SSH agent (Pageant)
- Added my
.ppk
(PuTTY Private Key) to Pageant using my passphrase - Opened the SourceTree Terminal in the location of my project, let's call it
C:/Project
. - Used
git init
to initialize the repository. - Used
git push -u origin --all
in order to push the repo from my computer to BitBucket. - Got this error:
Permission denied (publickey).
- Tried to see if I can get some more verbose output by doing
ssh -Tv [email protected]
- Still,Permission denied
.
I'm trying to figure out what exactly went wrong - did Sourcetee find my SSH key at all? Is the key not loaded in some specific place, causing this behavior?
Note: I have loaded the public key in my profile on BitBucket.