我正试图让流浪者在vagrant up
在vagrant up
期间,我当前收到以下错误:
default: Running: inline script
==> default: Cloning into 'awesome_repo'...
==> default: Permission denied (publickey).
==> default: fatal: Could not read from remote repository.
==> default:
==> default: Please make sure you have the correct access rights
==> default: and the repository exists.
我已将项目设置为使用vagrant的公钥和私钥:config.ssh.insert_key = false
我已将insecure_private_key
文件放在来宾计算机上的〜/ .ssh /文件夹中。我已将流浪公钥放入我的Stash Repo。
出于某种原因,当我到达供应商的那个阶段时,我收到了上述错误。我已经vagrant ssh
尝试了这些步骤到访客计算机,然后继续git clone
,我收到同样的错误。
以下是我的Vagrantfile
SSH配置的一部分:
config.ssh.insert_key = false
config.ssh.pty = true
我不确定我做错了什么。有线索吗?
答案 0 :(得分:0)
因为您没有粘贴整个Vagrantfile
,但让我猜一下,您应该使用https://
而不是git://
来克隆存储库。