In short.
E2B's SSH access guide helps developers use SSH with E2B sandboxes, but it leaves SSH authentication and server startup details unexplained. The walkthrough builds an Ubuntu 25.04 template containing OpenSSH and websocat, then connects a local SSH client through a proxy on sandbox port 8081. It includes JavaScript/TypeScript and Python examples plus macOS and Linux client instructions. SCP/SFTP transfers and SSH-dependent tools are stated uses without worked examples. Nothing was executed, and operating costs, exact SDK and websocat versions, and connection reliability remain unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete page at [https://docs.e2b.dev/sandbox/ssh-access.md]: both language examples, template building, sandbox creation, macOS and Linux connection instructions, and the mechanism diagram. The documentation-index notice is included, but the linked index at [https://docs.e2b.dev/llms.txt], the websocat repository and binary downloads are outside the scope. No code, connection, transfer or integration was executed.
The overview
Identity
This is E2B's documentation for connecting to an E2B sandbox through SSH at [https://docs.e2b.dev/sandbox/ssh-access.md]. It is a practical guide to a specific connection method using OpenSSH and websocat.
The page includes template definitions, template-build examples, sandbox creation, local connection commands and a diagram of the connection path.
Assessment
The guide is useful for developers who need an interactive terminal or a tool that expects SSH connectivity to an E2B sandbox. It explains the proxy arrangement and provides code for both supported example languages.
It is less complete as a first-time SSH setup tutorial. The reader must resolve how the SSH server starts, how login credentials are configured and how access is controlled. Successful connection cannot be established from the examples alone.
Users
The clearest audience is developers already building or using E2B sandboxes who want familiar SSH terminal access, file transfers or compatibility with SSH-based tools.
Beginners will need some understanding of sandbox templates, local command-line tools and SSH login configuration. Experienced developers get the proxy commands and SDK calls, but no worked editor integration or deployment configuration.
Capabilities
The page states that SSH access enables remote terminal sessions, SCP/SFTP file transfers and integration with tools that expect SSH. Its worked connection example covers an SSH session.
It demonstrates defining and building a reusable sandbox template and creating a sandbox from that template. It does not provide SCP/SFTP commands, examples for particular third-party tools or measured performance results.
Using it
Requirements
Following the examples requires access to build E2B templates and create sandboxes, the e2b SDK for JavaScript/TypeScript or Python, a local SSH client and websocat. The sandbox template installs openssh-server and downloads websocat.
The shown template uses Ubuntu 25.04, and the downloaded websocat executable targets Linux x86_64. Local installation instructions cover Homebrew on macOS and a binary download on Linux. SDK versions, E2B credential setup, Windows instructions and other binary architectures are not specified.
Mechanism
The local SSH client launches websocat through SSH's ProxyCommand option. That process carries the SSH connection over the WebSocket endpoint [wss://8081-<sandbox-id>.e2b.app].
Inside the sandbox, another websocat process listens on port 8081 and forwards the connection to the SSH server at 127.0.0.1:22. In the client command, SSH substitutes the target hostname into %h, allowing the sandbox identifier to form the endpoint address.
Setup
Define a template from Ubuntu 25.04, install openssh-server, download websocat and make it executable. Configure the start command to run websocat as a WebSocket listener on 0.0.0.0:8081 that forwards to TCP port 22 on localhost. The readiness helper waits for port 8081.
Build the template with the name ssh-ready, then create a sandbox from it and obtain its identifier. Install websocat locally using the instructions for your operating system, then configure SSH's ProxyCommand to reach that sandbox's WebSocket endpoint. SSH server startup and authentication still need to be established.
Example
The documented build names the template ssh-ready and requests 2 CPUs with 2048 MB of memory. JavaScript/TypeScript uses cpuCount and memoryMB; Python uses cpu_count and memory_mb. These are example settings, not stated minimum requirements.
After Sandbox.create('ssh-ready'), the examples print sandboxId in JavaScript/TypeScript or sandbox_id in Python. The connection then targets user@<sandbox-id>, with local websocat using binary mode and the -B 65536 option. The page does not explain the credentials for the login name user.
Assessment & evidence
Limitations
The template's explicit start command launches websocat. The page does not explain whether the image or package installation starts the SSH server, nor does it show credential provisioning or host-key management. Its readiness check covers proxy port 8081; that alone does not establish that SSH on port 22 accepts a login.
Access controls for the exposed endpoint, session behavior during interruptions and connection limits are not documented. File transfers and tool integrations have no worked examples, and latency, throughput and reliability are not measured.
Reasoning
The practical value is the connection between an SSH client and E2B's exposed-port mechanism. ProxyCommand lets the client send its SSH connection through websocat, while the sandbox-side proxy forwards it to OpenSSH.
This makes the approach a plausible fit when an existing tool requires SSH. The tradeoff is an additional program to install and configure at both ends, alongside the SSH server itself. That suitability judgment follows from the documented architecture; it is not a measured result.
Alternatives
The page presents only the websocat-based connection method. It provides no alternative transport, competing service or comparison.
It therefore does not establish whether another approach would require fewer setup steps, cost less or support more client environments.
Evidence
The evidence is the complete E2B SSH access page at [https://docs.e2b.dev/sandbox/ssh-access.md], captured on 15 November 2026. Its code examples and connection diagram support the description of the template and proxy mechanism.
Nothing was executed. No successful template build, SSH login, SCP/SFTP transfer or third-party tool connection was independently demonstrated. Statements about those uses come from the documentation.
Access & freshness
Costs
The page states no prices, billing terms or free allowance. Its example allocation of 2 CPUs and 2048 MB of memory does not establish a monetary cost.
Template-building and ongoing sandbox operating costs are unknown from this page.
Rights
The page contains no explicit licence or redistribution grant for its text and code examples. It links to websocat at [https://github.com/vi/websocat], but supplies no licensing terms for websocat or OpenSSH.
Rights to redistribute the documentation, examples or dependency binaries cannot be determined from this page alone.
Freshness
No publication or update date appears on the page, and no E2B SDK version is named. Ubuntu 25.04 is the specified base image, but its current availability and support status are not established here.
The websocat download uses a moving latest-release URL without naming a release or including a checksum-verification step. The exact downloaded version and compatibility with current dependencies cannot be reconstructed from the page alone.
Actions
Before adopting the example, establish how the SSH server starts and how the user account authenticates. Confirm host-key handling, endpoint access controls and compatible SDK, base-image and websocat versions.
In your own sandbox, verify an SSH login before trying any required file transfer or tool integration. Choose a specific websocat release for reproducibility, and establish current charges and applicable licensing terms before wider use.
