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

vagrant ssh-config — Display configuration to SSH into a Vagrant machine manually (instead of using `vagrant ssh`). See a

Submitted by: @import:tldr-pages··
0
Viewed 0 times
configurationcommandvagrantsshcliintovagrant ssh-configdisplay

Problem

How to use the vagrant ssh-config command: Display configuration to SSH into a Vagrant machine manually (instead of using vagrant ssh). See also: vagrant. More information: <https://developer.hashicorp.com/vagrant/docs/cli/ssh_config>.

Solution

vagrant ssh-config — Display configuration to SSH into a Vagrant machine manually (instead of using vagrant ssh). See also: vagrant. More information: <https://developer.hashicorp.com/vagrant/docs/cli/ssh_config>.

Get SSH configuration for the machine running in the current directory:
vagrant ssh-config


Target a machine by name or ID:
vagrant ssh-config {{name|id}}

Code Snippets

Get SSH configuration for the machine running in the current directory

vagrant ssh-config

Target a machine by name or ID

vagrant ssh-config {{name|id}}

Context

tldr-pages: common/vagrant ssh-config

Revisions (0)

No revisions yet.