ssh

strong-opx ssh

SSH into private host inside a project/environment

usage: strong-opx ssh [-h] [--project PROJECT] [--env ENVIRONMENT] [-v {0,1,2,3}] [--traceback] hostname

positional arguments

hostname

Hostname or host group or ip of instance

options

-h, --help

show this help message and exit

--project <project>

Select project by its name. If missing, strong-opx will attempt to auto-select project based on current working directory and its parents and looking for presence of configured project

--env <environment>

Environment name. If project has only one environment that will be auto selected

-v {0,1,2,3}, --verbosity {0,1,2,3}

Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output.

--traceback

Raise instead of handling known exceptions

Examples

If you know the private IP:

strong-opx ssh <private-ip>

Otherwise, if you don’t know the private IP and you can specify host group.

strong-opx ssh primary

Or if host group has multiple hosts, and you want to connect to non-zero host, you can specify index of host in host config.

strong-opx ssh <group-name>:<index>

Note

This command is a thin wrapper around ssh. To pass additional arguments to ssh you can use the -- separator. All arguments after -- will be passed as it is to ssh.