我试图让 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
,我收到了同样的错误。
这是我的Vagrantfile
SSH 配置的一部分:
config.ssh.insert_key = false
config.ssh.pty = true
我不确定我做错了什么。有什么线索吗?