0

我试图让 vagrant 在 a 的提供阶段结束时克隆一个 Stash repovagrant 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/ 文件夹中。我已将 vagrant 公钥放入我的 Stash Repo 中。

出于某种原因,当我进入配置程序的那个阶段时,我收到了上述错误。我也尝试了这些步骤,vagrant ssh进入来宾机器,然后继续git clone,我收到了同样的错误。

这是我的VagrantfileSSH 配置的一部分:

  config.ssh.insert_key = false
  config.ssh.pty = true

我不确定我做错了什么。有什么线索吗?

4

1 回答 1

0

因为你没有粘贴整个Vagrantfile,但让我猜猜,你应该使用https://thangit://来克隆存储库。

于 2016-01-20T03:03:18.447 回答