Files
cheatsheet-tldr/tldr/vagrant-ssh
2025-10-29 00:20:46 +00:00

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]}}`