mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
576 B
Plaintext
27 lines
576 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# vagrant ssh
|
|
|
|
> SSH into a running Vagrant machine.
|
|
> See also: `vagrant`.
|
|
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/ssh>.
|
|
|
|
- SSH into the machine running in the current directory:
|
|
|
|
`vagrant ssh`
|
|
|
|
- Target a running machine by name or ID:
|
|
|
|
`vagrant ssh {{name|id}}`
|
|
|
|
- Execute an SSH command and exit:
|
|
|
|
`vagrant ssh {{[-c|--command]}} {{ssh_command}}`
|
|
|
|
- SSH without authentication, leaving authentication up to the user:
|
|
|
|
`vagrant ssh {{[-p|--plain]}}`
|