# Cursor

> Connect Cursor to an Occlude session over SSH. Setup, what Cursor's agent and Tab can read and send, and why .cursorignore is not needed for it.

Source: https://occlude.dev/docs/cursor/ · Reviewed 28 November 2026

Cursor connects to an Occlude session with its own Remote SSH extension. Its agent, Tab and chat work on the task's files, and the files outside the task do not exist for them.


## Before you start

- Cursor, with its Remote SSH extension.
- OpenSSH on your machine, and an `ed25519` key.
- A session you have been granted.

## Connect

1. **Get a certificate.** In Occlude, open the session, choose *Connect an editor* and paste your public key. Save the files Occlude returns beside your key.
2. **Add the `Host` block** Occlude gives you to `~/.ssh/config`. It is the same block as on the [VS Code](https://occlude.dev/docs/vscode/) page.
3. **Open the host.** Connect to `occlude-<session>` from the Remote SSH menu and open the workspace folder.

The workspace has no route to the internet. Cursor's documentation says that if the remote host cannot reach its download hosts, "Cursor downloads the server on your machine and copies it over SSH", and to do that every time, set `remote.SSH.localServerDownload` to `always` in your settings:

```json
{
  "remote.SSH.localServerDownload": "always"
}
```

## What Cursor's agent can read

Everything Cursor reads, it reads from the workspace: its file tool, its search and the terminal it runs commands in. An *Occluded* file answers *No such file or directory* to all three, and each attempt is on the record.

That is the difference from `.cursorignore`. Cursor's own documentation says "the terminal and MCP server tools used by Agent cannot block access to code governed by `.cursorignore`", and that "complete protection isn't guaranteed due to LLM unpredictability." Inside Occlude the file is not there to block.

## What Cursor sends

Cursor runs its AI features on your machine. Its network documentation says: "AI requests go from your local machine to Cursor's servers, not from the remote host." Its data-use page says requests go through Cursor's backend even with your own API key. So the files you can read, and the ones the agent opens, can reach Cursor and its model providers, under Cursor's terms.

- Require **Privacy Mode** for everyone you grant. Cursor states it is "on by default for Enterprise teams".
- Occlude limits what Cursor can read. It does not change what Cursor does with what it reads.

See [Where your code goes](https://occlude.dev/docs/data-flow/).

## Cursor's agent over MCP instead

To give Cursor's agent a session without opening the workspace as a folder, connect it over MCP. See [Agents over MCP](https://occlude.dev/docs/agents-mcp/).

## Something not working

See [Troubleshooting](https://occlude.dev/docs/troubleshooting/).

## Sources

Vendor pages, last read on 28 November 2026. Each vendor's behaviour can change; their page is the authority.

- [Cursor: network configuration](https://cursor.com/docs/enterprise/network-configuration)
- [Cursor: network troubleshooting](https://cursor.com/help/troubleshooting/network)
- [Cursor: ignore files](https://cursor.com/docs/reference/ignore-file)
- [Cursor: data use](https://cursor.com/data-use)
- [Cursor: privacy](https://cursor.com/help/security-and-privacy/privacy)
