首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Laravel Homestead在SSH身份验证方法上挂起: mac上的私钥

Laravel Homestead在SSH身份验证方法上挂起: mac上的私钥
EN

Stack Overflow用户
提问于 2016-12-05 14:25:46
回答 11查看 21.6K关注 0票数 29

我似乎不能让Homestead运行。它挂起在SSH身份验证方法:私钥。

Homestead VM启动。我可以转到VirtualBox,打开终端窗口,使用vagrant:vagrant登录。

我不能ssh,ssh vagrant@127.0.0.1:2204或者ssh vagrant@127.0.0.1 -p 2204。

我的任何文件夹都不会显示在VM中,但VirtualBox显示它们已映射。

每次我流浪起来,我都会得到:

代码语言:javascript
复制
vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Checking if box 'laravel/homestead' is up to date...
==> homestead-7: Clearing any previously set forwarded ports...
==> homestead-7: Fixed port collision for 80 => 8000. Now on port 2200.
==> homestead-7: Fixed port collision for 443 => 44300. Now on port 2201.
==> homestead-7: Fixed port collision for 3306 => 33060. Now on port 2202.
==> homestead-7: Fixed port collision for 5432 => 54320. Now on port 2203.
==> homestead-7: Fixed port collision for 22 => 2222. Now on port 2204.
==> 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) => 2200 (host) (adapter 1)
    homestead-7: 443 (guest) => 2201 (host) (adapter 1)
    homestead-7: 3306 (guest) => 2202 (host) (adapter 1)
    homestead-7: 5432 (guest) => 2203 (host) (adapter 1)
    homestead-7: 22 (guest) => 2204 (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:2204
    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.

我用我盒子上的密钥替换了不安全的私钥。我看到很多人收到警告:连接超时。正在重试...但我还没走到那一步。

我在mac 10.11.6上

任何帮助都将不胜感激!

EN

回答 11

Stack Overflow用户

发布于 2016-12-06 23:27:59

今天我在macOS 10.12上遇到了同样的问题,花了6个小时才找到解决方案。最后,在几次重新安装、重新启动和反复试验之后,我通过以下步骤让它以某种方式工作……

完全卸载并重新安装Vagrant、Homestead.

  • Ensure和vagrant up --provision

  • Run
  1. VirtualBox homestead-7框在电缆UI中关闭,右键单击适配器框,然后选择设置并单击应连接到NAT的VirtualBox‘
  2. 1',单击’homestead-7
    1. VirtualBoxhomestead-7 'Advanced'
    2. Tick Homestead
    3. vagrant up --provision
    4. Run

    vagrant reload --provision‘旁边的框以重新调配计算机<homestead-7>H220

应该就是这样了!在此之后,我可以通过SSH登录,但无法通过浏览器查看Homestead站点(即使我已经配置了/etc/hosts文件),但简单地重启Mac似乎就可以解决这个问题。

考虑到我不知道到底是什么导致了这一点,这对我来说可能只是一点运气,但请让我知道你的进展如何。

票数 88
EN

Stack Overflow用户

发布于 2017-06-15 18:02:32

我遇到了这个问题。我在bios中启用了Vt-x,但它清除了它。

票数 8
EN

Stack Overflow用户

发布于 2017-07-19 11:37:51

  1. 打开VirtualBox UI并进入虚拟机。
  2. 按enter键使系统继续启动。

然后你就可以看到流浪汉在上面。

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40968297

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档