Connecting to your Laravel Homestead virtual machine

This is a free resource from my online course, From Idea To Launch, where I teach you how to build a full Laravel web application, step by step, at beginner's speed. Learn more →
If you’re having trouble with your Homestead virtual machine, check out the troubleshooting guide to sort things out.

With your Homestead virtual machine started, open the command line — Terminal on Mac; Git Bash on Windows — and move into your Homestead folder.

Then, to connect to the virtual machine, simply run the following command from within your Homestead folder:


$ vagrant ssh

You should notice that your command line prompt changes, once you’re connected to the virtual machine, to something like this:


vagrant@homestead:~$

Success!