vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Environment#copy_insecure_private_key

This method copies the private key into the home directory if it
doesn't already exist.

This must be done because `ssh` requires that the key is chmod
0600, but if Vagrant is installed as a separate user, then the
effective uid won't be able to read the key. So the key is copied
to the home directory and chmod 0600.

Source | Google | Stack overflow

Edit

git clone [email protected]:mitchellh/vagrant.git

cd vagrant

open lib/vagrant/environment.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Environment-copy_insecure_private_key-for-pr


# Commit to git

git add lib/vagrant/environment.rbgit commit -m "better docs for Vagrant::Environment#copy_insecure_private_key"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Vagrant--Environment-copy_insecure_private_key-for-pr

hub pull-request


# Celebrate!