Skip to content

Instantly share code, notes, and snippets.

@ambercouch
Created April 2, 2018 08:15
Show Gist options
  • Select an option

  • Save ambercouch/385cb88159f0c1954d68989f27d3355a to your computer and use it in GitHub Desktop.

Select an option

Save ambercouch/385cb88159f0c1954d68989f27d3355a to your computer and use it in GitHub Desktop.
Fix Scotch Box Authentication Failure
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "scotch/box"
config.vm.network "private_network", ip: "192.168.33.25"
config.vm.hostname = "scotchbox"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
config.vm.provision :shell, path: "phpmyadmin.sh"
#Fix Authentication Failure
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
# Optional NFS. Make sure to remove other synced_folder line too
#config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
end
@ambercouch
Copy link
Author

Just add
#Fix Authentication Failure
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
To your Vagrantfile file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment