Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Vagrant Homestead root password?

I have installed Homestead with

vagrant box add laravel/homestead vagrant init vagrant up

I can login with user vagrant:vagrant, but I can't login as root!

root:root and root:vagrant is wrong password.

I have solution: there is no root password, because user "vagrant" can run sudo -s bash.

like image 822
Samarkand Avatar asked Apr 17 '17 16:04

Samarkand


People also ask

What is the default root password vagrant?

Root Password: "vagrant"

What is password for vagrant ssh?

Edit: According to the Vagrant documentation, there is usually a default password for the user vagrant which is vagrant . Save this answer.

How do I access my homestead database?

A homestead database is configured for both MySQL and PostgreSQL out of the box. To connect to your MySQL or PostgreSQL database from your host machine's database client, you should connect to 127.0. 0.1 and port 33060 (MySQL) or 54320 (PostgreSQL). The username and password for both databases is homestead / secret.

What is Homestead and vagrant?

Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine. Vagrant provides a simple, elegant way to manage and provision Virtual Machines.


1 Answers

According to the docs, the vagrant user default password is just vagrant.

This user should be setup with the insecure keypair that Vagrant uses as a default to attempt to SSH. Also, even though Vagrant uses key-based authentication by default, it is a general convention to set the password for the "vagrant" user to "vagrant". This lets people login as that user manually if they need to.

like image 194
Jim Avatar answered Sep 27 '22 21:09

Jim