SSH into running Container instances
You can now SSH into running Container instances using Wrangler for debugging and executing commands. Configure wrangler_ssh in your Container settings, add your SSH public key to authorized_keys, and connect using wrangler containers ssh.
You can now SSH into running Container instances using Wrangler. This is useful for debugging, inspecting running processes, or executing one-off commands inside a Container.
To connect, enable wrangler_ssh in your Container configuration and add your ssh-ed25519 public key to authorized_keys:
{
"containers": [
{
"wrangler_ssh": {
"enabled": true
},
"authorized_keys": [
{
"name": "<NAME>",
"public_key": "<YOUR_PUBLIC_KEY_HERE>"
}
]
}
]
}[[containers]]
[containers.wrangler_ssh]
enabled = true
[[containers.authorized_keys]]
name = "<NAME>"
public_key = "<YOUR_PUBLIC_KEY_HERE>"
Then connect with:
wrangler containers ssh <INSTANCE_ID>
You can also run a single command without opening an interactive shell:
wrangler containers ssh <INSTANCE_ID> -- ls -al
Use wrangler containers instances <APPLICATION> to find the instance ID for a running Container.
For more information, refer to the SSH documentation.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.