Homestead Vagrant 卡在 SSH 连接上

Homestead Vagrant stuck on SSH connect

当我尝试在我的 MacBook Pro (OS X 10.12.3) 上启动 Laravel Homestead 时,它卡在了:

homestead-7: SSH address: 127.0.0.1:2222
homestead-7: SSH username: vagrant
homestead-7: SSH auth method: private key

它最终会超时。

Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

这是我的 vagrant box 显示的内容:

我的Homestead.yaml:

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

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code
      to: /home/vagrant/Code

sites:
    - map: homestead.app
      to: /home/vagrant/Code/Laravel/public

databases:
    - homestead

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

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

我是 运行 Vagrant 1.9.1 和 VirtualBox 5.1.14。

有人知道问题出在哪里吗?

我解决了。显然我必须在我的虚拟机上启用 "Cable Connection"。

Laravel Homestead hangs at SSH auth method: private key on mac

https://github.com/mitchellh/vagrant/issues/7648#issuecomment-235282382