Laravel Homestead SSH

I have some weird issues trying to access Laravel Homestead on my local machine via SSH. I can run:

homestead up 

no problem and access to my "website.local" through the browser. However, when I run:

 homestead ssh 

OR

 vagrant ssh 

I get the following information:

 Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-30-generic x86_64) * Documentation: https://help.ubuntu.com/ System information as of Fri Jan 2 11:08:55 UTC 2015 System load: 0.0 Processes: 95 Usage of /: 5.1% of 39.34GB Users logged in: 0 Memory usage: 35% IP address for eth0: 10.0.2.15 Swap usage: 0% IP address for eth1: 192.168.10.10 Graph this data and manage this system at: https://landscape.canonical.com/ Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud Last login: Fri Jan 2 11:08:55 2015 from 10.0.2.2 Connection to 127.0.0.1 closed. 

I have to say that this is absolutely perplexing to me, as it worked perfectly with last night.

+6
source share
1 answer

First, try the old-fashioned "turn it off and on again". Restart your computer and try homestead up again.

The next step is to destroy and restore your Homestead machine. Since your entire configuration is in the Homestead.yaml file, you will not lose anything (except the contents of any databases). Run homestead destroy and confirm, then homestead up again to rebuild it from scratch.

Alternatively, remove the Homestead configuration with rm -rf ~/.homestead (if you're on a Mac). Run homestead init and homestead edit to set up your computer again and finally homestead up to create it again.

Finally, go and make sure you have installed the latest versions of Vagrant and VirtualBox, and then update your Homestead installation with composer global update . Also run homestead update to make sure you have the latest Homestead image. Then, homestead init will start from scratch from scratch again.

+5
source

Source: https://habr.com/ru/post/980427/


All Articles