上 vagrant provision
Laravel Homestead 我得到 SSH authentication failed!
并且 Vagrant 实例不会运行。
SSH authentication failed! This is typically caused by the public/private keypair for the SSH user not being properly set on the guest VM.
这似乎是从我第一次配置宅基地时的错误开始的:
==> default: tee: /home/vagrant/.ssh/authorized_keys: No such file or directory
最佳答案
将默认文件夹映射到 /home/vagrant
在 Homestead.yaml
导致了这个问题。
这是我的文件夹设置:
folders:
- map: /Users/username/www
to: /home/vagrant
添加一个文件夹 deep 解决了这个问题:
folders:
- map: /Users/username/www/homestead
to: /home/vagrant/www
在职的 :)
也许有人可以详细说明为什么会发生这种情况?
关于laravel - Vagrant Laravel Homestead SSH 身份验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24506192/