vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Action::General::Package#setup_private_key

This will copy the generated private key into the box and use
it for SSH by default. We have to do this because we now generate
random keypairs on boot, so packaged boxes would stop working
without this.

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant/action/general/package.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Action--General--Package-setup_private_key-for-pr


# Commit to git

git add lib/vagrant/action/general/package.rbgit commit -m "better docs for Vagrant::Action::General::Package#setup_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--Action--General--Package-setup_private_key-for-pr

hub pull-request


# Celebrate!