Windows 10 安装 Homestead 卡在 SSH auth method: private key

λ vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Clearing any previously set forwarded ports...
==> homestead-7: Clearing any previously set network interfaces...
==> homestead-7: Preparing network interfaces based on configuration...
    homestead-7: Adapter 1: nat
    homestead-7: Adapter 2: hostonly
==> homestead-7: Forwarding ports...
    homestead-7: 80 (guest) => 8000 (host) (adapter 1)
    homestead-7: 443 (guest) => 44300 (host) (adapter 1)
    homestead-7: 3306 (guest) => 33060 (host) (adapter 1)
    homestead-7: 5432 (guest) => 54320 (host) (adapter 1)
    homestead-7: 27017 (guest) => 27017 (host) (adapter 1)
    homestead-7: 22 (guest) => 2222 (host) (adapter 1)
==> homestead-7: Running 'pre-boot' VM customizations...
==> homestead-7: Booting VM...
==> homestead-7: Waiting for machine to boot. This may take a few minutes...
    homestead-7: SSH address: 127.0.0.1:2222
    homestead-7: SSH username: vagrant
    homestead-7: SSH auth method: private key

一直卡在 SSH auth method: private key
打开 VirtualBox 虚拟机界面 一直卡在 longin 界面里
过 几分钟以后 显示 TIMEOUT 错误提示...

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.

有没有人 遇到过这种 问题... ?
或者 有没有 解决方案... ?
网上搜索了已经两天了.. 都没有 好的 解决方案..

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 15

打开你的虚拟机,设置里面选择网络,然后有个网卡选项-高级,把那个"接入网线"勾打上,再重启homestead看看。

7年前 评论

胡乱猜一下,不负责任哦

看看 C:\Users\你的用户名.ssh 文件夹是不是存在,并且存在两个文件 id_rsa & id_rsa.pub,如果不存在,则用 git 生成 ssh key,然后把 id_rsa 拷贝到 Homestead.vagrant\machines\homestead-7\virtualbox\ 命名为 private_key 文件,再重试一下~

7年前 评论

@oustn 谢谢你的 答复.. 可是还是不行

7年前 评论

@gcpark1210 确实有这样的问题 ,将virtual box 升级到 5.1* , vagrant 升级到最新版, md5校验你的box hash 是不是有问题

7年前 评论

解决了吗, 同遇到这个问题, 最后换了virtual box版本解决。win10的最佳版本好像是~.20 具体你可以去贴吧或者百度了解一下。虽然我最后放弃用这个开发了,。

7年前 评论

重装系统以后解决了。。。

7年前 评论

@gcpark1210 我win10装一直也有问题,能否告知安装的vagrant版本和virtualbox版本?谢谢

7年前 评论

@lpx20000 我直接重装系统解决的

7年前 评论

我也遇到这个问题,还是解决不了。

7年前 评论
Summer
6年前 评论

因为C盘满了,我修改了virtualbox 以及vagrant box存放路径,然后重新安装homestead就出现了这个问题,难道要重装系统么

6年前 评论

@oustn 按照他的方法搞定了!! 谢谢啦!!

看看 C:\Users\你的用户名.ssh 文件夹是不是存在,并且存在两个文件 id_rsa & id_rsa.pub,如果不存在,则用 git 生成 ssh key,然后把 id_rsa 拷贝到 Homestead.vagrant\machines\homestead-7\virtualbox\ 命名为 private_key 文件,再重试一下

6年前 评论

我的也是 改了code 的大小包括Oracle VM VirtualBox兼容模式,bios虚拟化 一样的在SSH auth method: private key
这个地方一直卡住了警告!

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!