2014-02-27 23:00:37 +00:00
|
|
|
---
|
2016-01-19 18:08:53 +00:00
|
|
|
layout: "docs"
|
2014-02-27 23:00:37 +00:00
|
|
|
page_title: "vagrant connect - Command-Line Interface"
|
|
|
|
sidebar_current: "cli-connect"
|
2016-01-19 18:08:53 +00:00
|
|
|
description: |-
|
|
|
|
The "vagrant connect" command compliments the "vagrant share" command to allow
|
|
|
|
a user to remotely connect to your Vagrant environment.
|
2014-02-27 23:00:37 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Connect
|
|
|
|
|
|
|
|
**Command: `vagrant connect NAME`**
|
|
|
|
|
|
|
|
The connect command compliments the
|
2016-01-19 18:08:53 +00:00
|
|
|
[share command](/docs/cli/share.html) by enabling access to shared
|
2014-02-27 23:00:37 +00:00
|
|
|
environments. You can learn about all the details of Vagrant Share in the
|
2016-01-19 18:08:53 +00:00
|
|
|
[Vagrant Share section](/docs/share/).
|
2014-02-27 23:00:37 +00:00
|
|
|
|
|
|
|
The reference of available command-line flags to this command
|
|
|
|
is available below.
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
* `--disable-static-ip` - The connect command will not spin up a small
|
|
|
|
virtual machine to create a static IP you can access. When this flag is
|
|
|
|
set, the only way to access the connection is to use the SOCKS proxy
|
|
|
|
address outputted.
|
|
|
|
|
|
|
|
* `--static-ip IP` - Tells connect what static IP address to use for the virtual
|
|
|
|
machine. By default, Vagrant connect will use an IP address that looks
|
|
|
|
available in the 172.16.0.0/16 space.
|
|
|
|
|
|
|
|
* `--ssh` - Connects via SSH to an environment shared with
|
|
|
|
`vagrant share --ssh`.
|