2017-10-10 164 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] .