Skip to content

[Containers] Document shells without SSH keys - #35857

Open
gpanders wants to merge 1 commit into
productionfrom
ganders/containers-shell-without-ssh-keys
Open

gpanders wants to merge 1 commit into
productionfrom
ganders/containers-shell-without-ssh-keys

Conversation

@gpanders

Copy link
Copy Markdown
Member

Summary

Documents shells without SSH keys in wrangler containers ssh. The Wrangler change is cloudflare/workers-sdk#17304. Merge this after that change ships in a Wrangler release.

  • containers/guides/ssh: Open a shell without keys in Containers that use the durable_object scheduling policy. Covers PTY allocation, --tty, --no-tty, exit codes and piped input. "Connect with OpenSSH" now uses Wrangler as an OpenSSH ProxyCommand. This connection is needed for the default policy, jurisdictions, port forwarding and SFTP.
  • wrangler containers ssh reference: Adds --stdio. Updates the --tty default and adds exit codes.
  • Wrangler configuration: ssh.enabled turns off shell and SSH access. ssh.port and authorized_keys only apply to OpenSSH connections.
  • Scheduling policy: The SSH section mentions the shell.
  • Changelog entry. Its date is a placeholder. Set it to the Wrangler release date.

Documentation checklist

  • Is there a changelog entry?
  • The change adheres to the documentation style guide.

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed 7fb1883 · 0 findings · incremental

Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@cloudflare-docs-bot

Copy link
Copy Markdown
Contributor

Review coverage

🟡 4 ownership areas need approval.

Suggested reviewers: @irvinebroque @danlapid @nikitassharma @skepticfx

Needs approval Eligible approvers Suggested
workers
/src/content/docs/workers/wrangler/
@irvinebroque, @MattieTK, @vy-ton, @cloudflare/wrangler, @cloudflare/product-owners irvinebroque
workers
/src/content/partials/workers/
@GregBrimble, @irvinebroque, @MattieTK, @mikenomitch, @vy-ton, @WalshyDev, @cloudflare/deploy-config, @cloudflare/workers-runtime-1, @cloudflare/wrangler, @cloudflare/product-owners danlapid, irvinebroque
containers
/src/content/docs/containers/
@mikenomitch, @th0m, @cloudflare/cloudchamber, @cloudflare/product-owners nikitassharma, skepticfx
containers
/src/content/changelog/containers/
@mikenomitch, @th0m, @cloudflare/cloudchamber, @cloudflare/pm-changelogs, @cloudflare/product-owners skepticfx
CODEOWNERS mappings for displayed areas (4)
Pattern Owners
/src/content/docs/workers/wrangler/ @irvinebroque, @MattieTK, @vy-ton, @cloudflare/wrangler, @cloudflare/product-owners
/src/content/partials/workers/ @GregBrimble, @irvinebroque, @MattieTK, @mikenomitch, @vy-ton, @WalshyDev, @cloudflare/deploy-config, @cloudflare/workers-runtime-1, @cloudflare/wrangler, @cloudflare/product-owners
/src/content/docs/containers/ @mikenomitch, @th0m, @cloudflare/cloudchamber, @cloudflare/product-owners
/src/content/changelog/containers/ @mikenomitch, @th0m, @cloudflare/cloudchamber, @cloudflare/pm-changelogs, @cloudflare/product-owners

[`wrangler containers ssh`](/workers/wrangler/commands/containers/#containers-ssh) now opens a shell in a running Container without SSH keys. You no longer need to add a public key to `authorized_keys` or install OpenSSH locally. This works for Containers that use the [`durable_object` scheduling policy](/containers/configuration/scheduling-policy/).

```sh
wrangler containers ssh <INSTANCE_ID>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about cf?

@MattieTK

@@ -0,0 +1,23 @@
---
title: Open a shell in a container without SSH keys

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we would want to convey the via Cloudflare CLI part?

wrangler containers ssh opens a shell in Containers that use the
durable_object scheduling policy without authorized_keys or OpenSSH.
OpenSSH through a Wrangler ProxyCommand stays the way to reach the
default policy and jurisdictions, and to use port forwarding and SFTP.
@gpanders
gpanders force-pushed the ganders/containers-shell-without-ssh-keys branch from 73b2f53 to 7fb1883 Compare November 30, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants