Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Tony Petroski
Tony Petroski
1,789 Points

vagrant homestead virtualbox ssh authentication failing (windowsOS)

dir@5CB4042YZD MINGW64 ~ $ cd homestead

dir@5CB4042YZD MINGW64 ~/homestead (master) $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'laravel/homestead' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 80 => 8000 (adapter 1) default: 443 => 44300 (adapter 1) default: 3306 => 33060 (adapter 1) default: 5432 => 54320 (adapter 1) default: 22 => 2222 (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... ==> default: Waiting for cleanup before exiting...

dir@5CB4042YZD MINGW64 ~/homestead (master) $ Vagrant exited after cleanup due to external interrupt. vagrant ssh-config Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile C:/Users/tpetrosk/.vagrant.d/insecure_private_key IdentitiesOnly yes LogLevel FATAL

I just cannot get past this.

As an alternative, through youtube i was able to find the full Lavarel framework install for WAMP setup. I was successful in producing this.

But i still like to work out your virtualbox method. I have made sure the .ssh folder contains the id_rsa files.

I also ran the bash init.sh script which creates a new homestead.yaml file in the new .homestead folder. So now i have two locations of the yaml file.

1) .homestead/homestead.yaml

2) homestead/src/stubs/homestead.yaml

Both yaml files have the following details....

authorize: ~/.ssh/id_rsa.pub

keys: - ~/.ssh/id_rsa

folders: - map: ~/Projects to: /home/vagrant/Code

sites: - map: laravel.dev to: /home/vagrant/Code/laravel-basics/public

Do you have any other suggestions?