==> 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:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if its present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
The private key to connect to the machine via SSH must be owned
by the user running Vagrant. This is a strict requirement from
SSH itself. Please fix the following key to be owned by the user
running Vagrant:
/srv/data/VirtualBox/vagrant/test/.vagrant/machines/default/virtualbox/private_key
monte@machin-shin:/srv/data/VirtualBox/vagrant/test$ config.ssh.insert_key = false into your Vagrantfile should prevent it from changing the keys, which means it will keep using the old one.
For your issue it sounds like the place that vagrant is trying to store the new private key file has too loose of permissions, so you need to chmod the .ssh folder that they live in to 600, which the .pub being 644 permissions.Until you figure out the issue, you can try the workaround in this comment. https://github.com/mitchellh/vagrant/issues/5059#issuecomment-68041037Basicallyconfig.ssh.insert_key = falseinto yourVagrantfileshould prevent it from changing the keys, which means it will keep using the old one.
For your issue it sounds like the place that vagrant is trying to store the new private key file has too loose of permissions, so you need to chmod the .ssh folder that they live in to 600, which the .pub being 644 permissions.
/srv/data/VirtualBox/vagrant/test/.vagrant/machines/default/virtualbox/private_key
monte@machin-shin:/srv/data/VirtualBox/vagrant/test$
--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/FeXfcxpQlVA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.