Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nisaacson/vagrant-ssh-config-generator
Create an ssh config to allow ssh access to vagrant boxes without the vagrant command
https://github.com/nisaacson/vagrant-ssh-config-generator
Last synced: 26 days ago
JSON representation
Create an ssh config to allow ssh access to vagrant boxes without the vagrant command
- Host: GitHub
- URL: https://github.com/nisaacson/vagrant-ssh-config-generator
- Owner: nisaacson
- Created: 2013-09-12T23:22:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-12T23:37:32.000Z (about 11 years ago)
- Last Synced: 2024-08-10T21:29:08.957Z (3 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vagrant ssh config generator
Create an ssh config to allow ssh access to vagrant boxes.
[![Build Status](https://travis-ci.org/nisaacson/vagrant-ssh-config-generator.png?branch=master)](https://travis-ci.org/nisaacson/vagrant-ssh-config-generator)
[![NPM](https://nodei.co/npm/vagrant-ssh-config-generator.png)](https://nodei.co/npm/vagrant-ssh-config-generator/)
## Usage
The command `vagrant-ssh-config-generator` outputs a string that looks like
```bash
Host *.vagrant.dev
User vagrant
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile "/HOME_DIRECTORY_HERE/.vagrant.d/insecure_private_key"
IdentitiesOnly yes
LogLevel FATAL
```To add this to your ssh config file, execute
```bash
vagrant-ssh-config-generator >> ~/.ssh/config
```Note that in the example above, `HOME_DIRECTORY_HERE` will be replaced with your actual home directory
## Test
```bash
# install development dependcies
npm install
# run the tests
npm test
```