mccli scp¶
Copies files between hosts on a network over SSH using the provided OIDC Access Token to authenticate.
The SOURCE and TARGET may be specified as a local pathname, a remote host with optional path in the form [user@]host:[path], or a URI in the form scp://[user@]host[:port][/path]
The remote user should not be specified, since it will be obtained from the motley_cue service. If you specify a username for a host, then it will be used; it will be assumed that this specific host does not use motley_cue, and by extension, token authentication; you will have to handle authentication for this host on your own.
When no Access Token source is specified, the remote host is queried for supported issuers; if only one issuer is supported, this is used to retrieve the token from the oidc-agent.
mccli scp [OPTIONS] SCP_COMMAND...
Options
- --token <TOKEN>¶
- Pass token directly. Environment variables are checked in given order. 
- --oa-account, --oidc <SHORTNAME>¶
- Name of configured account in oidc-agent. 
- --iss, --issuer <URL>¶
- URL of token issuer. Configured account in oidc-agent for this issuer will be used. Environment variables are checked in given order. 
- --mc-endpoint <URL>¶
- motley_cue API endpoint. Default URLs are checked in given order: https://HOSTNAME, https://HOSTNAME:8443, http://HOSTNAME:8080 
- --insecure¶
- Ignore verifying the SSL certificate for motley_cue endpoint, NOT RECOMMENDED. 
- --no-cache¶
- Do not cache HTTP requests. 
- --debug¶
- Sets the log level to DEBUG. 
- --log-level <LEVEL>¶
- Either CRITICAL, ERROR, WARNING, INFO or DEBUG. Default value: ERROR. 
- --disable-version-check¶
- Disable warnings if a new version of mccli is available for download on Pypi. 
- --dry-run¶
- Print sshpass command and exit. 
- -h, --help¶
- Show this message and exit. 
- -V, --version¶
- Print program version and exit. 
Arguments
- SCP_COMMAND¶
- Required argument(s) 
Environment variables
- ['ACCESS_TOKEN', 'OIDC', 'OS_ACCESS_TOKEN', 'OIDC_ACCESS_TOKEN', 'WATTS_TOKEN', 'WATTSON_TOKEN']
- Provide a default for - --token
- ['OIDC_AGENT_ACCOUNT']
- Provide a default for - --oa-account
- ['OIDC_ISS', 'OIDC_ISSUER']
- Provide a default for - --iss
- LOG
- Provide a default for - --log-level
