HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

vagrant ssh — SSH into a running Vagrant machine. See also: `vagrant`. More information: <https://developer.hashic

Submitted by: @import:tldr-pages··
0
Viewed 0 times
vagrant sshcommandvagrantsshcliintorunningmachine

Problem

How to use the vagrant ssh command: SSH into a running Vagrant machine. See also: vagrant. More information: <https://developer.hashicorp.com/vagrant/docs/cli/ssh>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/vagrant ssh

Revisions (0)

No revisions yet.