# Reach a home server without an SSH key

Your agent looks at a Linux computer at home, a media box or a small server, without an SSH key
and without a port opened on your router. It starts able to read only.

**In short:** On the server: `curl -fsSL https://install.cmdop.ai | sh`, then `cmdop setup` with the same email
as your other computers. Ask your agent: "List my computers in CMDOP."

## When to use this

You would otherwise give an agent an SSH key, which lets it do anything, or open a port to reach
the computer from outside.

## Steps

1. Install CMDOP on the server, the same command as on any Mac or Linux computer
   ([quick start](https://docs.cmdop.ai/start/quickstart-owner.md)). It works over ssh, with no browser.
2. Run `cmdop setup` with the email of your account. The server joins your other computers on
   your page.
3. Use the agent you already connected ([connect an agent](https://docs.cmdop.ai/guides/connect.md)). It sees the server
   the next time it calls [`machines_list`](https://docs.cmdop.ai/reference/tools/machines_list.md).
4. Ask for facts first: "What is the memory and disk space on my home server?"
   ([`sys_info`](https://docs.cmdop.ai/reference/tools/sys_info.md)). Reading files and system facts needs no extra step.
5. Only when a task needs it, switch on `write` or `exec` for that agent
   ([grant risk classes](https://docs.cmdop.ai/guides/access/grant.md)). To keep a class off on this server for every
   agent, set its [ceiling](https://docs.cmdop.ai/guides/access/ceiling.md).

## Check

`machines_list` shows the server as `online`, and `sys_info` returns its numbers.

## If it fails

- The server is missing: `cmdop control status.get` on the server says whether the program runs.
- [`denied`](https://docs.cmdop.ai/reference/errors/denied.md): the agent asked for a class it does not have. That is the
  default working as meant.

## Related

[The machine](https://docs.cmdop.ai/concepts/machine.md) · [Pause a machine](https://docs.cmdop.ai/guides/pause-and-presence.md) ·
[Revoke an agent](https://docs.cmdop.ai/guides/access/revoke.md)
