scp

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

To download a file from any server in your environment:

strong-opx scp <remote_host_or_ip> @</path/to/remote/file> /path/to/local/dir

This will connect to the server and download the file located at /path/to/remote/file to the folder /path/to/local/dir. Similarly to upload file from local to server:

strong-opx scp <remote_host_or_ip> /path/to/local/dir @</path/to/remote/file>

Note

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