ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
SSH through Wrangler is now enabled by default for Containers. Previously, you had to set
This change does not expose any publicly accessible ports on your Container. The SSH service is reachable only through
To connect, add a public key to your Container configuration and run
To disable SSH, set
For more information, refer to the SSH documentation.
Continue reading...
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>:
Code:
{
"containers": [
{
"authorized_keys": [
{
"name": "<NAME>",
"public_key": "<YOUR_PUBLIC_KEY_HERE>",
},
],
},
],
}
Code:
[[containers]]
[[containers.authorized_keys]]
name = "<NAME>"
public_key = "<YOUR_PUBLIC_KEY_HERE>"
To disable SSH, set
ssh.enabled to false in your Container configuration:
Code:
{
"containers": [
{
"ssh": {
"enabled": false,
},
},
],
}
Code:
[[containers]]
[containers.ssh]
enabled = false
For more information, refer to the SSH documentation.
Continue reading...