LinuxCommandLibrary

vagrant-ssh

SSH into Vagrant virtual machines

TLDR

SSH into VM

$ vagrant ssh
copy
SSH into specific VM
$ vagrant ssh [name]
copy
Run command via SSH
$ vagrant ssh -c "[command]"
copy
SSH without TTY
$ vagrant ssh -- -T
copy

SYNOPSIS

vagrant ssh [options] [name] [-- sshargs_]

DESCRIPTION

vagrant ssh opens an SSH session to a Vagrant machine. Automatically handles authentication using generated keys. The primary way to access Vagrant VMs interactively.

PARAMETERS

-c, --command cmd

Execute command.
-p, --plain
Plain SSH without extras.
--
Pass args to ssh.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community