2013-09-03 18:08:28 +00:00
|
|
|
---
|
2013-09-06 16:50:43 +00:00
|
|
|
page_title: "vagrant ssh - Command-Line Interface"
|
2013-09-03 18:08:28 +00:00
|
|
|
sidebar_current: "cli-ssh"
|
|
|
|
---
|
|
|
|
|
|
|
|
# SSH
|
|
|
|
|
|
|
|
**Command: `vagrant ssh`**
|
|
|
|
|
|
|
|
This will SSH into a running Vagrant machine and give you access to a shell.
|
|
|
|
|
|
|
|
If a `--` (two hyphens) are found on the command line, any arguments after
|
|
|
|
this are passed directly into the `ssh` executable. This allows you to pass
|
2013-12-19 12:23:18 +00:00
|
|
|
any arbitrary commands to do things such as reverse tunneling down into the
|
2013-09-03 18:08:28 +00:00
|
|
|
`ssh` program.
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
* `-c COMMAND` or `--command COMMAND` - This executes a single SSH command, prints
|
2013-09-06 16:50:43 +00:00
|
|
|
out the stdout and stderr, and exits. stdin will not be functional on this
|
|
|
|
executed command.
|
2013-09-03 18:08:28 +00:00
|
|
|
|
|
|
|
* `-p` or `--plain` - This does an SSH without authentication, leaving
|
|
|
|
authentication up to the user.
|