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

后端 未结 9 1778
醉梦人生
醉梦人生 2020-12-13 01:14

I can\'t seem to get Homestead running. It hangs at SSH auth method: private key.

The Homestead VM starts. I can go to VirtualBox and open the terminal window and lo

相关标签:
9条回答
  • 2020-12-13 02:02

    I had to do a fsck. (disclaimer, I typed the commands from memory)

    1. Open VirtualBox UI and enter the virtual machine.
    2. If you see (initramfs), type exit
    3. fsck /dev/mapper/vagrant-vg-root -y
    4. reboot

    Go back to your normal terminal and try a:

    vagrant halt
    vagrant up
    

    For me, things were back to normal from here.

    0 讨论(0)
  • 2020-12-13 02:04

    If you are on Windows, you have done everything here and still have trouble, maybe this is the solution you need.

    Open the Command Prompt as an administrator. Type the bcdedit command. You may find hypervisorlaunchtype Auto. If that is the case, type bcdedit /set hypervisorlaunchtype off to turn it off. Reboot and try again.

    Hope this helps.

    0 讨论(0)
  • 2020-12-13 02:05

    I had the same problem on macOS 10.12 today, and lost 6 hours trying to find a fix. Finally, after several reinstallations, reboots, and trial and error, I somehow got it to work by following these steps...

    1. Completely uninstall and reinstall Vagrant, VirtualBox, and Homestead.
    2. Ensure the homestead-7 box is shut down within the VirtualBox UI
    3. Right-click the homestead-7 box, and choose Settings
    4. Click 'Network'
    5. Under 'Adapter 1', which should be attached to NAT, click 'Advanced'
    6. Tick the box beside 'Cable Connected'
    7. Save settings, and reprovision Homestead with vagrant up --provision
    8. Run vagrant reload --provision to reprovision the machine

    That should be it! I was able to SSH in after this, but not able to view Homestead sites through the browser (even though I'd configured the /etc/hosts file), but a simple reboot of the Mac seemed to fix this.

    Given I don't know what exactly caused this in the first place, this might just be a bit of luck for my case, but let me know how you get on.

    0 讨论(0)
提交回复
热议问题