SSH & File Transfer

ssh

SSH into a server or execute a remote command.

ops ssh <target> [command]

Arguments:

Argument
Description

target

Node ID or app.project format

command

Optional command to execute remotely

OPS automatically fetches the CI private key from the API and uses it for authentication. No manual key management needed.

Examples:

# Interactive SSH session by node ID
ops ssh 42

# Interactive SSH session by app target
ops ssh api.my-saas

# Execute a remote command
ops ssh 42 "docker ps"
ops ssh api.my-saas "df -h"

push

Push a file or directory to a server via SCP.

Arguments:

Argument
Description

source

Local file or directory path

target

app.project[:/remote/path]

If no remote path is specified, files are uploaded to /root/.

Examples:

ci-keys

Get the CI private key for a target. Useful for CI/CD pipeline setup.

Alias: ops ci-key

Arguments:

Argument
Description

target

app.project format

Outputs the private SSH key to stdout. Use in CI/CD pipelines:

Last updated