mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 00:58:23 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/vagrant-ssh
Normal file
26
tldr/vagrant-ssh
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
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]}}`
|
||||
Reference in New Issue
Block a user