2013-09-03 18:08:28 +00:00
|
|
|
---
|
2016-01-19 18:08:53 +00:00
|
|
|
layout: "docs"
|
2013-09-06 16:50:43 +00:00
|
|
|
page_title: "vagrant ssh-config - Command-Line Interface"
|
2013-09-03 18:08:28 +00:00
|
|
|
sidebar_current: "cli-ssh_config"
|
2016-01-19 18:08:53 +00:00
|
|
|
description: |-
|
|
|
|
The "vagrant ssh-config" command is used to output a valid SSH configuration
|
|
|
|
file capable of SSHing into the guest machine directly.
|
2013-09-03 18:08:28 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# SSH Config
|
|
|
|
|
|
|
|
**Command: `vagrant ssh-config`**
|
|
|
|
|
|
|
|
This will output valid configuration for an SSH config file to SSH
|
|
|
|
into the running Vagrant machine from `ssh` directly (instead of
|
|
|
|
using `vagrant ssh`).
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
* `--host NAME` - Name of the host for the outputted configuration.
|