SSH through Wrangler now enabled by default for Containers
SSH access through Wrangler is now automatically enabled for Containers without requiring configuration changes. SSH remains secure as it only authenticates through your Cloudflare account and requires ssh-ed25519 public keys in authorized_keys to grant access.
SSH through Wrangler is now enabled by default for Containers. Previously, you had to set ssh.enabled to true in your Container configuration before you could connect.
This change does not expose any publicly accessible ports on your Container. The SSH service is reachable only through wrangler containers ssh, which authenticates against your Cloudflare account. You also need to add an ssh-ed25519 public key to authorized_keys before anyone can connect, so enabling SSH alone does not grant access.
To connect, add a public key to your Container configuration and run wrangler containers ssh <INSTANCE_ID>:
{
"containers": [
{
"authorized_keys": [
{
"name": "<NAME>",
"public_key": "<YOUR_PUBLIC_KEY_HERE>",
},
],
},
],
}[[containers]]
[[containers.authorized_keys]]
name = "<NAME>"
public_key = "<YOUR_PUBLIC_KEY_HERE>"
To disable SSH, set ssh.enabled to false in your Container configuration:
{
"containers": [
{
"ssh": {
"enabled": false,
},
},
],
}[[containers]]
[containers.ssh]
enabled = false
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.