{"id":289,"date":"2026-03-12T00:00:00","date_gmt":"2026-03-12T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/03\/12\/containers-ssh-into-running-container-instances\/"},"modified":"2026-03-12T00:00:00","modified_gmt":"2026-03-12T00:00:00","slug":"containers-ssh-into-running-container-instances","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/03\/12\/containers-ssh-into-running-container-instances\/","title":{"rendered":"Containers &#8211; SSH into running Container instances"},"content":{"rendered":"<p>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.<\/p>\n<p>To connect, enable <code>wrangler_ssh<\/code> in your Container configuration and add your <code>ssh-ed25519<\/code> public key to <code>authorized_keys<\/code>:<\/p>\n<ul>\n<li>\n<p>wrangler.jsonc<\/p>\n<div>\n<div>\n<figure>\n<pre data-language=\"jsonc\"><code class=\"language-jsonc\"><div><div><span>{<\/span><\/div><\/div><div><div><span>  <\/span><span>\"<\/span><span>containers<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>[<\/span><\/div><\/div><div><div><span>    <\/span><span>{<\/span><\/div><\/div><div><div><span>      <\/span><span>\"<\/span><span>wrangler_ssh<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>{<\/span><\/div><\/div><div><div><span>        <\/span><span>\"<\/span><span>enabled<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>true<\/span><\/div><\/div><div><div><span>      <\/span><span>},<\/span><\/div><\/div><div><div><span>      <\/span><span>\"<\/span><span>authorized_keys<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>[<\/span><\/div><\/div><div><div><span>        <\/span><span>{<\/span><\/div><\/div><div><div><span>          <\/span><span>\"<\/span><span>name<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"&lt;NAME&gt;\"<\/span><span>,<\/span><\/div><\/div><div><div><span>          <\/span><span>\"<\/span><span>public_key<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"&lt;YOUR_PUBLIC_KEY_HERE&gt;\"<\/span><\/div><\/div><div><div><span>        <\/span><span>}<\/span><\/div><\/div><div><div><span>      <\/span><span>]<\/span><\/div><\/div><div><div><span>    <\/span><span>}<\/span><\/div><\/div><div><div><span>  <\/span><span>]<\/span><\/div><\/div><div><div><span>}<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div><\/div>\n<\/li>\n<li>\n<p>wrangler.toml<\/p>\n<div>\n<div>\n<figure>\n<pre data-language=\"toml\"><code class=\"language-toml\"><div><div><span>[[<\/span><span>containers<\/span><span>]]<\/span><\/div><\/div><div><div><span>[<\/span><span>containers<\/span><span>.<\/span><span>wrangler_ssh<\/span><span>]<\/span><\/div><\/div><div><div><span>enabled<\/span><span> <\/span><span>=<\/span><span> <\/span><span>true<\/span><\/div><\/div><div><div>\n<\/div><\/div><div><div><span>[[<\/span><span>containers<\/span><span>.<\/span><span>authorized_keys<\/span><span>]]<\/span><\/div><\/div><div><div><span>name<\/span><span> <\/span><span>=<\/span><span> <\/span><span>\"&lt;NAME&gt;\"<\/span><\/div><\/div><div><div><span>public_key<\/span><span> <\/span><span>=<\/span><span> <\/span><span>\"&lt;YOUR_PUBLIC_KEY_HERE&gt;\"<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div><\/div>\n<\/li>\n<\/ul>\n<p>Then connect with:<\/p>\n<div>\n<figure>\n<pre data-language=\"sh\"><code class=\"language-sh\"><div><div><span>wrangler<\/span><span> <\/span><span>containers<\/span><span> <\/span><span>ssh<\/span><span> <\/span><span>&lt;INSTANCE_ID&gt;<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div>\n<p>You can also run a single command without opening an interactive shell:<\/p>\n<div>\n<figure>\n<pre data-language=\"sh\"><code class=\"language-sh\"><div><div><span>wrangler<\/span><span> <\/span><span>containers<\/span><span> <\/span><span>ssh<\/span><span> <\/span><span>&lt;INSTANCE_ID&gt;<\/span><span> <\/span><span>--<\/span><span> <\/span><span>ls<\/span><span> <\/span><span>-al<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div>\n<p>Use <code>wrangler containers instances &lt;APPLICATION&gt;<\/code> to find the instance ID for a running Container.<\/p>\n<p>For more information, refer to the <a href=\"https:\/\/developers.cloudflare.com\/containers\/ssh\/\">SSH documentation<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>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: wrangler.jsonc { &#8220;containers&#8221;: [ { &#8220;wrangler_ssh&#8221;: { &#8220;enabled&#8221;: true }, &#8220;authorized_keys&#8221;: [ { &#8220;name&#8221;: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}