workarea {env} ssh

Connect to instance(s) through SSH

Synopsis

# Connect to a single app instance
$ workarea {env} ssh app

# Connect to all running and available app instances
$ workarea {env} ssh --all app

# Connect to an instance by IP private address
$ workarea {env} ssh 13.37.12.34

Description

This command uses SSH and your VPC's VPN as a Bastian host.

It is capable of connecting to one or many instances.

To connect to multiple instances at once you'll need csshX installed, which is currently only supported in macOS and Linux.

The following arguments are available to this command:

  -a, --all, [--connect-all=one two three]
  -c, [--command=COMMAND]                   # Command to run (optional)