如何让流浪汉克隆Stash仓库?

时间:2016-01-20 00:09:01

标签: ssh vagrant ssh-keys vagrantfile vagrant-provision

我正试图让流浪者在vagrant up

的提供阶段结束时克隆一个Stash回购

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

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

1 个答案:

答案 0 :(得分:0)

因为您没有粘贴整个Vagrantfile,但让我猜一下,您应该使用https://而不是git://来克隆存储库。

相关问题