laravel 什么是 Vagrant Homestead 的 root 密码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43455322/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 15:48:16  来源:igfitidea点击:

What is Vagrant Homestead root password?

laravelvagranthomestead

提问by Samarkand

I have installed Homestead with

我已经安装了 Homestead

vagrant box add laravel/homestead vagrant init vagrant up

vagrant box 添加 laravel/homestead vagrant init vagrant up

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

我可以使用 vagrant:vagrant 用户登录,但无法以 root 用户身份登录!

root:root and root:vagrant is wrong password.

root:root 和 root:vagrant 是错误的密码。

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

我有解决方案:没有root密码,因为用户“vagrant”可以运行sudo -s bash。

回答by Peggy

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

根据文档vagrant用户的默认密码只是vagrant.

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

该用户应该使用不安全的密钥对进行设置,Vagrant使用该密钥对作为尝试 SSH 的默认值。此外,即使流浪默认使用基于密钥的认证,它是设置一个一般惯例密码为“无业游民”用户“无业游民”。这允许人们在需要时手动以该用户身份登录。

回答by Napole?o Wingert

Try this password: secret

试试这个密码:secret

I think that password works.

我认为密码有效。