# Add a server

A server is any Linux machine Coresmith can reach over SSH. You can bring one you already have, or have Coresmith create one at your cloud provider.

## Bring your own server

1. Check the server meets the [server requirements](/docs/reference/servers). A fresh Ubuntu 24.04 or Debian 12 install works best.
2. Choose **Add server**, then **Bring your own VM**.
3. Enter the server's IP address, its SSH port and an SSH user that is root or can use sudo. On Coresmith Cloud, use its public IP address. The form refuses a private one, such as an address on your home network or a Tailscale address, because Cloud can't reach it.
4. Run the command Coresmith shows on the server, as that user. It adds a key that Coresmith made for this server alone.

Coresmith never asks for the server's password. If your team already has a server at that IP address and SSH port, the form names it instead of adding it twice.

## Create a server at your cloud provider

1. Choose **Add server** and pick a connected account. To connect one, see [Connect a cloud provider](/docs/servers/cloud-providers).
2. Pick a region and a size. Coresmith shows each size's monthly price from the provider.
3. Choose **Provision server**.

The server is created in your account with Coresmith's key already on it. Your provider bills you for it.

## Watch it get set up

Setup starts as soon as Coresmith reaches the server. The server's page shows each step as it runs, and the whole thing takes a few minutes. When it's done, the server reads **Healthy** and you can add apps to it.

The line under the server's name shows its region, cores, memory, disk, system, the address Coresmith signs in to and how long it has been up. If the server also has a private address, such as one on a Hetzner or DigitalOcean private network, it appears there within the hour, as **private 10.0.0.2**.

If a step fails, the page says which one and why. Fix the cause, then try the step again, or choose **Start over** to run every step from the beginning. Each step is safe to repeat.

Setup locks the server down as it goes. [How Coresmith protects your servers](/docs/concepts/security) explains what changes.

## If your provider has a firewall

Some providers put a firewall of their own in front of the server, such as Hetzner Cloud's firewalls or AWS security groups. If yours does, let in the server's SSH port and ports 80 and 443 there, or Coresmith and your visitors can't reach the server.
