I Have a private repo on BitBucket, Im trying to install on localhost using composer install, here is my composer.json file:
{
"repositories": [
{
"type": "git",
"url": "git@bitbucket.org:username/repo.git"
}
]
}
When I run composer install from the command line I get:
[RuntimeException] Failed to execute git clone --mirror "git@bitbucket.org:username/repo.git" "C:/Users/...../" Cloning into bare repository 'C:/Users/.....'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
My key pair has an passphrase but composer never asks for it, I am running windows 10 with the Pageant client running and the correct key selected.
Also there is a config file with this data:
Host bitbucket.org
IdentityFile ~/.ssh/openssh (yes my key name is openssh)
The funny thing is that if I copy and paste this command:
git clone --mirror "git@bitbucket.org:username/repo.git"
I do get ask for my passphrase and after that it start cloning the Repo.
What could be wrong? most information about this error refers directly for git commands, but in my case they work, what is not working is composer, what am i doing wrong?