11
votes

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.

4

4 Answers

5
votes

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.

1
votes

The username and password for both databases is homestead / secret. Follow the section "Connecting to Databases" at https://laravel.com/docs/8.x/homestead#connecting-to-databases

0
votes

Try this password: secret

I think that password works.