为什么在运行up命令时vagrant会抛出认证错误?

时间:2015-08-03 11:22:08

标签: php laravel vagrant virtualbox homestead

我刚进入我的机器并在Homestead.yaml文件中添加了一个新网站到我的流浪设置文件中,如下所示:

    ---
    ip: "192.168.10.10"
    memory: 2048
    cpus: 1
    provider: virtualbox

    authorize: ~/.ssh/id_rsa.pub

    keys:
        - ~/.ssh/id_rsa


   folders:
    - map: /Freelance/projects
      to: /home/vagrant/projects
    - map: /Freelance/projects/synergy-camps/synergy-camps
      to: /home/vagrant/projects

sites:
    - map: scoff_app.local
      to: /home/vagrant/projects/scoff/scoff-api/public
    - map: phpmyadmin.app
      to: /home/vagrant/projects/phpmyadmin
    - map: synergy_camps.dev
      to: /home/vagrant/projects/synergy-camps/synergy-camps/public

databases:
    - homestead
    - synergycamps

    databases:
        - homestead
        - synergycamps

    variables:
        - key: APP_ENV
          value: local

    # blackfire:
    #     - id: foo
    #       token: bar
    #       client-id: foo
    #       client-token: bar

    # ports:
    #     - send: 93000
    #       to: 9300
    #     - send: 7777

当我进入我的/ Homestead目录并运行:

vagrant up

我收到以下错误:

default: Warning: Authentication failure. Retrying...

以前有人有这个吗?

1 个答案:

答案 0 :(得分:0)

你确定你的密钥是正确的吗?

您的VM可能在启动计算机时提出问题。

有关解决此问题的更多选项,请参阅以下答案: Vagrant ssh authentication failure