LinuxCommandLibrary

vagrant-ssh-config

Output SSH configuration for Vagrant VMs

TLDR

Show SSH config

$ vagrant ssh-config
copy
Output for specific host
$ vagrant ssh-config --host [name]
copy
Append to SSH config
$ vagrant ssh-config >> ~/.ssh/config
copy

SYNOPSIS

vagrant ssh-config [options] [name]

DESCRIPTION

vagrant ssh-config outputs SSH configuration for connecting to the VM. Displays host, user, port, and identity file settings. Can be appended to ~/.ssh/config for direct ssh access.

PARAMETERS

--host name

Host name for config.

SEE ALSO

vagrant(1), vagrant-ssh(1), ssh(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community