scp¶SSH into private host inside a project/environment
usage: strong-opx ssh [-h] [--project PROJECT] [--env ENVIRONMENT] [-v {0,1,2,3}] [--traceback] hostname
Hostname or host group or ip of instance
show this help message and exit
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
Environment name. If project has only one environment that will be auto selected
Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output.
Raise instead of handling known exceptions
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.