-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Private Key change permissions 0600 #988
Comments
Try running |
move private_key out of NFS drive and create a soft link towards old location (don’t forget to chmod original key) |
It's not supposed to be outside of the machine for security reasons. This was likely because of an older version of Vagrant, it was a bug a while back that it would not set the key properly |
@xhiza the soft link worked perfectly for me |
Recreating the VM with a I suspect some users might do so in order to use SSH auth, but that is a dangerous thing to do, and not the way it should be fixed. SSH key forwarding is the answer, and turned on by default, it allows the hosts ssh key to be used inside the VM |
@xhiza Can you explain more on why did we have to do this?? |
@nikhilbansal97 |
I'd like to reiterate that there are no circumstances under which one should need to or want to touch or change things regarding SSH keys and the VM. If you can run If SSH forwarding is non-functional, upgrade to the latest VVV Vagrant and VirtualBox, reboot, reprovision, and if that does not fix the issue, create a new issue here. |
ok there is just one circumstance where if you get this message :
you can solve with a soft link and changing the permission in the original file. and nothing happened at the VM |
No Circumstances Whatsoever? telling people not to use the solutions or to reinstall or upgrade, the latter of which is hard to do from the latest version of the software, is not really a workable solution/workaround. Now, @tomjn since you are so certain that fixing this in this fashion is a terrible idea, and I do trust your expertise, I would be SUPER INTERESTED in a safe way to fix this, taking into consideration all the factors and implications of a Linux->WSL->Windows->VM workflow, please. |
Hrm. It looks like this may also be a solution for anyone coming across this issue... |
@metagrapher I believe you've misread my comment addressing SSH port forwarding. It appears you've encountered edge cases in Vagrant itself, and you found a solution that doesn't involve messing with keys. As I said, if you're able to run Also remember this is the VVV project, not the Hashicorp Vagrant project. If someone does come across this particular issue, in VVV, with modern Vagrant versions, please open a new issue, and include all the information the ticket asks for, such as the splash screen, provisioner output, etc |
Hi,
I'm trying to install Vagrant and this error keeps coming up but I'm not sure how to change the permissions:
The text was updated successfully, but these errors were encountered: