blob: 20965f7f4bb949a78f0bd73e34b96dd7e3e23582 (
plain)
1
2
3
4
5
6
7
8
9
|
<h1 id="connect"> Connect </h1> <p><strong>Command: <code>vagrant connect NAME</code></strong></p> <p>The connect command complements the <a href="share">share command</a> by enabling access to shared environments. You can learn about all the details of Vagrant Share in the <a href="../share/index">Vagrant Share section</a>.</p> <p>The reference of available command-line flags to this command is available below.</p> <h2 id="options"> Options </h2> <ul> <li>
<p><a href="#disable-static-ip"><code>--disable-static-ip</code></a> - 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.</p> </li> <li>
<p><a href="#static-ip-ip"><code>--static-ip IP</code></a> - 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.</p> </li> <li>
<p><a href="#ssh"><code>--ssh</code></a> - Connects via SSH to an environment shared with <code>vagrant share --ssh</code>.</p> </li> </ul><div class="_attribution">
<p class="_attribution-p">
© 2010–2018 Mitchell Hashimoto<br>Licensed under the MPL 2.0 License.<br>
<a href="https://www.vagrantup.com/docs/cli/connect.html" class="_attribution-link">https://www.vagrantup.com/docs/cli/connect.html</a>
</p>
</div>
|