Docs/Candor Deploy
Add a server
Connect a Linux server you already have over SSH, what Candor Deploy installs on it, which ports to open, and what to do when the connection fails. Or get a managed Candor Cloud server instead.
Your projects run on servers in your workspace. You can connect a server you already rent, or have us create a managed one for you, called a Candor Cloud server. This page covers both. What each costs is in Plans, trial and billing.
What your server needs
- Linux. Ubuntu or Debian is the easiest choice. Other common distributions work too.
- A public address. Candor Deploy connects to your server from the internet. Private addresses (such as
10.x,192.168.x), loopback, and tailnet or CGNAT addresses (100.64.xto100.127.x) are refused, including host names that resolve to them. - SSH access as
root, or as a user that can install packages and run Docker. You log in with a password or a private key. - Room for your apps. The projects on a server share its memory, CPU and disk, so size it for everything you plan to run on it, builds included.
You do not need to install Docker or anything else first. Candor Deploy installs what is missing.
Connect your server
- Open Servers in the sidebar and press Add Server (or Add Your First Server if the list is empty).
- Fill in the form:
- Server Name: an optional label such as
Production. If you leave it blank, the address is used. - Server IP Address: the public address of the server, for example
203.0.113.10. - Port: the SSH port. This is
22unless you changed it. - Username: usually
root. - Authentication: choose Password or SSH Key.
- Server Name: an optional label such as
- Press Test Connection. It logs in and reports back without saving anything. Fix any error before you go on.
- Press Save & Continue to Setup.
Password or SSH key
Password. Type the server’s password. It is encrypted before it is stored.
SSH key. Paste your private key into Private Key, or press Upload key file and choose the file (for example ~/.ssh/id_ed25519). Upload the private key, not the .pub file: the form rejects a file that is not a private key. If the key has a passphrase, enter it under Passphrase. The key is encrypted before it is stored, and the dashboard never shows it again. To replace it later, open the server, press Edit and paste a new one.
The public half of the key must already be in ~/.ssh/authorized_keys for that user on the server.
The host key is pinned
On the first connection, Candor Deploy records the server’s SSH host key. Every later connection checks it. If the key changes, for example because the server was reinstalled, connections are refused until the change is dealt with. Contact us if that happens.
What Candor Deploy installs
After you save, choose how to set the server up:
- Automatic Setup checks the server and installs everything missing in one go. Pick this if you are not sure.
- Step-by-Step Setup shows each component and its status, and lets you choose what to install.
- Skip for Now saves the server without installing anything. You can run setup later from the server’s page.
Setup installs:
- Docker, which runs your apps in containers.
- Git, which fetches your code.
- The edge, the reverse proxy that sends traffic for your domains to the right app and gets HTTPS certificates from Let’s Encrypt. Parts of it may be added the first time an app needs a domain or HTTPS.
You can follow the progress and the log as each piece installs. When it finishes, you land on the server’s page. Its Components tab lists what is installed, with Re-check and Install Missing if something needs fixing.
Firewall and ports
If your server or your hosting company has a firewall, allow these inbound:
| Port | What for |
|---|---|
| 22 (or your SSH port) | Candor Deploy manages the server over SSH. |
| 80 | HTTP, and Let’s Encrypt’s checks when it issues a certificate. |
| 443 | HTTPS to your apps. |
If you run a mail server on it, mail needs its own ports too, such as 25, 587 and 993.
Your databases do not need a public port. Apps reach them over a private network on the server. See Databases.
The server’s Security tab can scan which ports are listening and flag any open to the public, and set a per-visitor request rate limit for the whole server.
The server page
Each server has its own page with tabs:
- Overview: CPU, memory, disk, uptime and load, and the health of its components.
- Components: what is installed, with re-check, install and reinstall.
- Security: the port scan and rate limiting.
- Terminal: a shell on the server in your browser.
Edit in the header changes the connection details. Remove Server in the menu removes it from your workspace.
If the connection fails
“Can’t reach” the server. Candor Deploy could not open an SSH connection. Check that:
- the server is running;
- SSH is listening on the port you entered;
- a firewall allows SSH from the internet, not just from your own address;
- you entered the public address, not a private one.
“SSH credentials rejected”. The server answered but refused the login. The password is wrong, or the key is not in ~/.ssh/authorized_keys for that user. Some servers disable password logins (PasswordAuthentication no in the SSH settings); use a key for those. Open Edit on the server, fix the credentials, and test again.
The address is refused. The address, or the address a host name resolves to, is private, loopback or on a tailnet. Use the server’s public address.
A component failed to install. Open Components and expand the install log. The last lines say why. Common causes are a server with no outbound internet, or a package manager that is busy with automatic updates. Wait a few minutes, then press Re-check and Install Missing.
The trial or plan stops you adding it. The free trial covers one server you bring. To add more, choose a plan under Plans & billing. See Plans, trial and billing.
Still stuck? Contact us with the server’s address and the error you see. Do not send passwords or keys.
Candor Cloud: a managed server
If you would rather not run a server yourself, we can create one for you. A Candor Cloud server is a managed server we set up and run, in a region and a size you pick. Docker and the edge are installed for you.
- Choose a plan first. Candor Cloud needs the paid Connect plan, so it is not part of the free trial.
- Open Plans & billing and scroll to Candor Cloud. The Add Server dialog also links there.
- Pick a Region and a Size, optionally give it a Name, and press Create.
The order is charged straight away, prorated to your billing date, and the server is ready in a few minutes. It then appears under Servers like any other.
A Candor Cloud server can grow in place to a larger size from the same list. It cannot shrink; to go smaller, create a smaller one and move your projects to it. Deleting one removes everything running on it and deletes its data. Prices are in Plans, trial and billing.
What to read next
- Quickstart: deploy your first app to the new server.
- How Candor Deploy works: servers, projects and deploys.
Something here wrong, unclear or missing? Tell us. Docs get fixed like bugs.
Not a customer yet? Start a free trial, or see plans and limits.