I cannot download github private repos with composer
php composer.phar update
I get the following error
The "https://api.github.com/repos/company/private1" file could not be downloaded (HTTP/1.1 404 Not Found)
but i can easily download these private repos using git clone
Composer.json
"repositories": [
{
"type": "vcs",
"url": "git@github.com:company/private1.git",
"options": {
"ssh2": {
"username": "githubusername",
"pubkey_file": "/home/username/.ssh/id_rsa.pub",
"privkey_file": "/home/username/.ssh/id_rsa"
}
}
},
{
"type": "vcs",
"url": "git@github.com:company/private2.git",
"options": {
"ssh2": {
"username": "githubusername",
"pubkey_file": "/home/username/.ssh/id_rsa.pub",
"privkey_file": "/home/username/.ssh/id_rsa"
}
}
}
],
"require": {
"php": ">=5.4.3",
"zendframework/zendframework": ">2.1.3",
"doctrine/mongodb-odm": "dev-master",
"doctrine/doctrine-mongo-odm-module": "dev-master",
"company/private": "dev-master",
"company/private2": "dev-master"
}
I tried with this but it doesnot work
SSH2 PECL is also enabled.
I have also created config file vim ~/home/.ssh/config
with the following details
host www.github.com
User githubusername
HostName github.com
IdentityFile /home/username/.ssh/id_rsa
but still i cannot download the private repos using composer