2017-10-10 166 views
3

我有私人回购存储和ssh密钥访问。我在.ssh/config file上配置了主机名,端口,ssh文件(_rsa)。稍后我在终端上执行git clone ssh://[email protected]命令。有用。当我在终端执行composer update vendor/repo:dev-master命令,此命令失败,并给出以下错误:作曲家git克隆 - 镜像失败

Repository not found
The requested repository does not exist, or you do not have permission to access it.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

+2

我在composer.json更改URL解决的问题。解决方案是'git + ssh:// git @ stash' – ihvan

回答

0

根据原来的海报:

I solved problem by changing url in composer.json. Solution is git+ssh://[email protected] .