SSH helper for Vagrant to execute ssh much faster than vagrant ssh
-
-t
will be passed as an SSH option to force pseudo-tty allocation. -
vm-name
is defined atconfig.vm.define
line in Vagrantfile.
If it's omitted, it will use SSH config for the first VM in Vagrantfile. -
If
command
is omitted, you will login to the VM instead of executing a command.
$ vagrant ssh
$ barge
$ vagrant ssh -c "docker version"
$ barge docker version
$ vagrant ssh node-01 -c "docker version"
$ barge docker version
$ vagrant ssh node-02 -c "docker version"
$ barge node-02 docker version