SSH access
Connect directly to your environment containers using the Cloud CLI. SSH access uses AWS ECS Exec under the hood.
Prerequisites
Section titled “Prerequisites”- AWS CLI must be installed — installation guide
- SSH must be enabled for the environment in the dashboard
Connect to a container
Section titled “Connect to a container”qc sshThis opens an interactive bash shell in your environment container. If multiple containers are available, you’ll be prompted to select one.
Options
Section titled “Options”| Flag | Description |
|---|---|
--container <name> | Connect to a specific container (skip selection prompt) |
--command <cmd> | Run a command instead of opening an interactive shell |
--interactive | Force interactive mode when used with --command |
--org <org> | Override organization |
--app <app> | Override application |
--env <env> | Override environment |
--platform <platform> | Override active platform |
Examples
Section titled “Examples”Interactive shell
Section titled “Interactive shell”# Default: opens bash in the containerqc ssh
# Open a shell in a specific containerqc ssh --container=phpRun a one-shot command
Section titled “Run a one-shot command”# Check PHP versionqc ssh --command="php -v"
# Run a database migrationqc ssh --container=php --command="php artisan migrate"
# Check disk usageqc ssh --command="df -h"Interactive command
Section titled “Interactive command”Use --interactive with --command when you need an interactive shell other than bash:
# Open an interactive sh shellqc ssh --container=php --command="/bin/sh" --interactiveOverride context
Section titled “Override context”Connect to a specific environment without changing your active context:
qc ssh --org=my-org --app=my-app --env=productionConnection details
Section titled “Connection details”When a connection is established, the CLI displays:
- Cluster — the ECS cluster name
- Container — the container you’re connected to
- Region — the AWS region
- Expires — when the session credentials expire
- Context — the org/app/env you’re connected to