SSH has no Host header

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

explains how multi-tenant SSH hosting can route logins without per-VM IPs, a trick engineers building SSH-based platforms can reuse.

Read this as

Simon Willison explains how exe.dev, a hosting service charging $20/month for up to 25 virtual machines sharing 2 CPUs and 8GB RAM, can route your SSH logins to the right machine. SSH, unlike web traffic, has no 'Host header' telling servers which site you want. exe.dev solves this by giving each customer's VMs IP addresses unique to that account, then identifying the user by their SSH key. It is a neat piece of infrastructure plumbing, useful to anyone running shared servers.

exe.dev sells SSH-only hosting at $20/month for up to 25 VMs sharing 2 CPUs and 8GB RAM. Its load balancer cannot use a Host header because SSH has none, so it assigns each customer a distinct set of shared IPs and authenticates the account via the user's SSH public key before forwarding traffic. For buyers this means cheap, isolated VM hosting without per-machine IP costs; competitors relying on per-VM IP allocation face a cost disadvantage.

SSH lacks a Host header equivalent, so a single shared IP cannot be dispatched by name. exe.dev's workaround: VMs share IPs across many users, but each customer's VMs get an IP unique within that account. The infrastructure reads the SSH public key presented during handshake, resolves the owning account, and forwards the session to the correct VM. Limitation: routing depends entirely on key-based identity rather than destination address.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

exe.dev SSH Datasette Pyodide Simon Willison

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading