为什么vagrant在运行up命令时会抛出身份验证错误


Why does vagrant throw authentication errors when running the up command?

我刚刚进入我的机器,并在Homestead的流浪设置文件中添加了一个新站点。文件如下:

    ---
    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

当我cd到我的/Homestead目录并运行:

vagrant up

我得到下面的错误:

default: Warning: Authentication failure. Retrying...

有人吃过这个吗?

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

您的虚拟机可能在启动机器时询问问题。

要解决此问题的更多选项,请参阅以下答案:ssh认证失败