I am new to Vagrant and getting the following error on vagrant up or vagrant ssh :
The private key to connect to this box via SSH has invalid permissions set on it. The permissions of the private key should be set to 0600, otherwise SSH will ignore the key. Vagrant tried to do this automatically for you but failed. Please set the permissions on the following file to 0600 and then try running this command again: [...]/.vagrant/machines/default/virtualbox/private_key
I launched:
$ sudo chmod 666 [...]/.vagrant/machines/default/virtualbox/private_key
I also tried (600, 777), but still getting the same error.
Please someone tell me what is wrong and how to fix it?
source share