Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant Laravel Homestead SSH authentication failed

On vagrant provision of Laravel Homestead I get SSH authentication failed! and the Vagrant instance won't run.

SSH authentication failed! This is typically caused by the public/private keypair for the SSH user not being properly set on the guest VM.

This seems to have started from the error when I first provisioned homestead:

==> default: tee: /home/vagrant/.ssh/authorized_keys: No such file or directory
like image 535
Bradley Flood Avatar asked Jul 01 '14 08:07

Bradley Flood


1 Answers

Having the default folder mapped to /home/vagrant in the Homestead.yaml was causing the issue.

This was my folders setting:

folders:
    - map: /Users/username/www
      to: /home/vagrant

Adding a folder deep fixed the problem:

    folders:
        - map: /Users/username/www/homestead
          to: /home/vagrant/www

Working :)

Perhaps someone can elaborate as to why this happens?

like image 153
Bradley Flood Avatar answered Oct 11 '22 18:10

Bradley Flood