Hi, Thanks everyone for helping. So it turns out that it was because I was mounting the /home/vagrant folder to the hosts default folder, and the .ssh/authorized_keys permissions were getting messed up by the host. So even setting the .ssh folder permissions to 0700, the .ssh/authorized_keys to 0600 didn't work.
Lesson learned - thanks for all your help. Do not mount the guest's home folder to the host's home folder. Kind of a strange limitation but there you are. On Wednesday, 16 May 2018 15:04:06 UTC+4, ben wyatt wrote: > > Seriously - I have been trying for 4 days non-stop. > > What I would like to do: > > 1. Download minimal/centos7 > 2. Update yum, install python-pip & ansible, update vboxguestadditions > 3. Package > 4. Upload to share site > 5. User downloads and does NOTHING apart from 'vagrant up' and 'vagrant > ssh', no ssh-keygen shenanigans or downloading the public insecure key > > Obviously as I am sure you can imagine, there are all sorts of ssh issues > rendering it impossible to share the box. A shared box should be like a > clean install for anyone downloading it - just like when one downloads > minimal/centos7 - no messing about with keys or whatever - just vagrant up > && vagrant ssh and you are in. > > config.ssh.insert_key = false - obviously doesn't work > > Vagrant is a great idea - why have they completely fecked it with this > idiotic ssh nonsense!!! > > Any help would be hugely appreciated!!!! > > Many thanks in advance, > > Ben > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/ecc9e267-07b8-42e2-86ce-dcd6705f3ddc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
