SSH Access Now Available for Cloudflare Container Instances
Key Points
- SSH access now available for Container instances
- Interactive shell and single command execution supported
- Requires ssh-ed25519 key configuration in wrangler config
Summary
Cloudflare has introduced SSH access for running Container instances through Wrangler CLI, enabling developers to debug, inspect processes, and execute commands directly inside containers.
Key Points
- Configuration: Enable SSH by setting
wrangler_ssh.enabled = truein your container configuration - Authentication: Add your ssh-ed25519 public key to the
authorized_keyssection - Interactive Access: Use
wrangler containers ssh <INSTANCE_ID>to open an interactive shell - Command Execution: Run single commands with
wrangler containers ssh <INSTANCE_ID> -- <command> - Instance Discovery: Find running container instance IDs using
wrangler containers instances <APPLICATION>
Configuration Example
{
"containers": [{
"wrangler_ssh": { "enabled": true },
"authorized_keys": [{
"name": "<NAME>",
"public_key": "<YOUR_PUBLIC_KEY_HERE>"
}]
}]
}