Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Laravel Homestead挂起在SSH上身份验证方法:mac上的私钥_Macos_Laravel_Ssh_Vagrant_Homestead - Fatal编程技术网

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

Macos Laravel Homestead挂起在SSH上身份验证方法:mac上的私钥,macos,laravel,ssh,vagrant,homestead,Macos,Laravel,Ssh,Vagrant,Homestead,我似乎无法让家园运转起来。它挂起在SSH auth方法:私钥上 宅地虚拟机启动。我可以进入VirtualBox,打开终端窗口,用vagrant:vagrant登录 我不能流浪,嘘,嘘vagrant@127.0.0.1:2204或sshvagrant@127.0.0.1-第2204页 我的所有文件夹都不会显示在虚拟机中,但VirtualBox表示它们已映射 每次我流浪起来,我都会得到: vagrant up Bringing machine 'homestead-7' up with 'virtu

我似乎无法让家园运转起来。它挂起在SSH auth方法:私钥上

宅地虚拟机启动。我可以进入VirtualBox,打开终端窗口,用vagrant:vagrant登录

我不能流浪,嘘,嘘vagrant@127.0.0.1:2204或sshvagrant@127.0.0.1-第2204页

我的所有文件夹都不会显示在虚拟机中,但VirtualBox表示它们已映射

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

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


任何帮助都将不胜感激

今天,我在macOS 10.12上遇到了同样的问题,花了6个小时试图找到解决方案。最后,经过几次重新安装、重新启动和反复试验,我不知何故通过以下步骤使其正常工作

  • 完全卸载并重新安装Vagrant、VirtualBox和Homestead
  • 确保VirtualBox UI中的
    homestead-7
    框已关闭
  • 右键单击
    homestead-7
    框,然后选择设置
  • 单击“网络”
  • 在应连接到NAT的“适配器1”下,单击“高级”
  • 勾选“电缆连接”旁边的框
  • 保存设置,并用
    vagrant up--provision重新设置宅地
  • 运行
    vagrant reload--设置
    以重新安装机器
  • 应该是这样!在这之后,我可以通过SSH登录,但无法通过浏览器查看宅地站点(尽管我配置了
    /etc/hosts
    文件),但简单地重启Mac似乎可以解决这个问题


    考虑到我一开始不知道到底是什么原因造成的,这可能只是我的一点运气,但请告诉我你进展如何。

    这里对我来说没有任何效果。我陷入了SSH-auth-method:private-key的境地,因为我的mac被黑屏屏蔽并崩溃了


    对我来说,唯一有效的办法就是一个
    流浪汉销毁
    ,然后
    流浪汉起来——提供
    。当心,这当然会在你的虚拟机垃圾的任何东西。但无论如何,你应该使用短暂的原则…

    我有这个问题。我在bios中启用了Vt-x,它将其清除

  • 打开VirtualBox UI并输入虚拟机
  • 按回车键使系统继续引导
  • 然后您可以看到vagrant正在运行。

    在BIOS设置中启用“虚拟化技术”

    vagrant 2.1.2

    vagrant destroy
    然后
    vagrant up——这项规定对我有效

    我注意到这通常发生在新版《流浪汉》发行时,我不得不做一次fsck。(免责声明,我从内存中键入了命令)

  • 打开VirtualBox UI并输入虚拟机
  • 如果看到(initramfs),请键入exit
  • fsck/dev/mapper/vagrant vg root-y
  • 重新启动
  • 返回正常终端并尝试:

    vagrant halt
    vagrant up
    

    对我来说,一切都从这里恢复正常。

    如果你使用Windows,你在这里做了所有事情,但仍然有问题,也许这就是你需要的解决方案

    以管理员身份打开命令提示符。键入
    bcdedit
    命令。您可能会发现
    hypervisorlaunchtype Auto
    。如果是这种情况,请键入
    bcdedit/set hypervisorlaunchtype off
    将其关闭。重新启动并重试


    希望这有帮助。

    尝试使用管理员权限从CMD调用
    vagrant up
    ,你能打开virtualbox并检查virtualbox中VM的状态吗,它是否已完成引导?它已引导。我可以打开VirtualBox虚拟机屏幕,以vagrant、password vagrant的身份登录。步骤3-6为我解决了这个问题!你是个救生员@Jack!步骤3-6为我解决了这个问题——但只是暂时的。销毁和重新创建vm每次都需要执行步骤3-6。更新我的家园目录中的流浪者文件对我来说是最好的解决方案:步骤3-6。你救了我一天!我能给你50票赞成票吗?对我来说,在第8步之后我不必重新启动我的mac,但我注意到虚拟机在登录时卡住了。我只需要提供默认用户名和密码(vagrant/vagrant),然后我就可以访问我的网站了!谢谢!很高兴看到这有帮助,伙计们!:-)这里的Windows 10用户也做了同样的事情,它成功了。我的bios称之为“英特尔虚拟化技术”。谢谢你的提示。更换了主板,开始出现这个问题。。。这也是给我的。谢谢即使这“解决”了问题,bug也可能会像对我的vbox一样再次出现。这是最后一项措施,应该得到警告。这并不能解决问题,你将不得不重新下载盒子,因为我爱你。此答案应标记为已接受的答案。它适用于我。谢谢你,伙计。在我的例子中,我运行fsck/dev/mapper/homestead vg root-y