在网上找了很多的答案都不可靠。
Vagrantfile已经配置了用户和密码,
config.ssh.username = "root"
config.ssh.password = "vagrant"
解决办法:
1.vagrant up 出现default: Warning: Authentication failure. Retrying...
2.在VirtualBox输入用户和密码回车
3.cd /etc/ssh/
4.vi sshd_config
5.PasswordAuthentication yes
6.vagrant reload