【发布时间】:2017-05-08 23:04:58
【问题描述】:
我在我的 Vagrant 盒子上使用 SSH 代理转发。看起来设置正确,因为我可以在我的私有存储库上成功执行 git clone:
$ git clone git@github.com:myorganisation/myrepo.git
Cloning into 'myrepo'...
我的 composer.json 中也有这个存储库:
{
"type": "vcs",
"url": "git@github.com:myorganisation/myrepo.git"
},
但是,当我在同一用户下运行 composer update 时,我收到一条错误消息,表明我未经身份验证:
The "https://api.github.com/repos/com:myorganisation/myrepo" file could not be downloaded (HTTP/1.1 404 Not Found)
如何指示 Composer 使用我的转发密钥?
【问题讨论】:
标签: ssh vagrant composer-php ssh-agent