# Devices

> Approve a device that asks to join your account.

## Approve a device

This screen links a machine to your account. When you run `shardio auth login`, or `shardio up` on a new machine, the machine prints a short code. Type that code here and approve it, and the machine joins your account. Its earnings come to you.

1. Run `shardio auth login` on the machine you are adding.
2. Open this screen, type the code it printed under **Code**, and click **Continue**.
3. Check what the code names, then click **Approve**.

The code never travels in a link: you always type it yourself. That way nobody can send you a link that approves their machine with one click.

Once approved, the screen says the machine is authorized. The machine notices on its own, so there is nothing more to do here.

Machines need hosting turned on for your account. If it is not, the details of a machine code show locked, with **Unlock** to ask for access.

See [Link it to this account](/serve/node-setup/#link-to-account) for the whole step.

## Approve a device

Type the code the machine printed, then click **Continue**. Before you approve, read what the code names:

- **Machine**: the machine's name, the hostname unless you chose another.
- **Source address**: the network address the request came from.
- **Requested**: when the code was made.

Only approve if you just ran the command on that machine yourself. Approving lets the machine join your mesh and earn for this account. If you did not start it, do not approve.

**If the code is refused:**

- "That code is not valid." or "That code is no longer valid.": codes expire after ten minutes. Run `shardio auth login` again for a new one.
- "That code has already been approved.": nothing more to do.
- "Too many attempts.": wait, then try again.
- Shardio could not be reached, or could not authorize the machine: try again in a few minutes.

See [`shardio auth login`](/reference/cli/#auth-login) in the CLI reference.
