vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Plugin::V2::Provider#ssh_info

This should return a hash of information that explains how to
SSH into the machine. If the machine is not at a point where
SSH is even possible, then `nil` should be returned.

The general structure of this returned hash should be the
following:

    {
      host: "1.2.3.4",
      port: "22",
      username: "mitchellh",
      private_key_path: "/path/to/my/key"
    }

**Note:** Vagrant only supports private key based authentication,
mainly for the reason that there is no easy way to exec into an
`ssh` prompt with a password, whereas we can pass a private key
via commandline.

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant/plugin/v2/provider.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Plugin--V2--Provider-ssh_info-for-pr


# Commit to git

git add lib/vagrant/plugin/v2/provider.rbgit commit -m "better docs for Vagrant::Plugin::V2::Provider#ssh_info"


# 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--Plugin--V2--Provider-ssh_info-for-pr

hub pull-request


# Celebrate!