# Server requirements

## Systems

Ubuntu 24.04 and Debian 12 have had the most testing. Rocky Linux, AlmaLinux, Fedora and Amazon Linux are accepted too. Start from a fresh install when you can.

## Access

Coresmith needs SSH as root, or as a user who can use sudo. It adds a key of its own for the server, and never asks for a password.

## Ports

| Port          | Used for                                                 |
| ------------- | -------------------------------------------------------- |
| Your SSH port | Coresmith, and people signing in with their own keys     |
| 80 and 443    | Your apps' visitors. 443 also carries HTTP/3 over UDP.   |
| Preview ports | Apps with **Preview without a domain** on, while it's on |

Everything else coming in is closed until you [open a port](/docs/servers/firewall). Nothing going out is blocked.

## Running other software

A server can run things Coresmith doesn't manage, such as a monitoring agent, and a server with no apps on it is fine too. Before you add your own services:

- **Keep them off Coresmith's ports.** Apps use ports 8000 to 9999 on the server itself, server-side rendering uses 13700 to 13899, and previews use 20000 and up.
- **Leave Coresmith's pieces alone.** The web server, the runtimes Coresmith installs and the apps' accounts belong to Coresmith. Changing them by hand can break deploys.
- **Debuggers need root.** Processes can't inspect each other, so attaching a debugger to a running process takes root.
- **Check Docker's ports.** Ports that Docker publishes skip the server's firewall rules, so check what Docker exposes before you rely on the firewall.

Coresmith leaves users, services, packages, cron jobs, firewall rules and SSH keys that you add yourself alone, and never flags them.
