> ## Documentation Index
> Fetch the complete documentation index at: https://equatetravel.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# FTP / SFTP

> Watch a folder on your file server for invoices, pick up booking-data feeds, and deliver results — one connector, in and out.

The **FTP / SFTP connector** connects equate to a folder on a file server. It's the
workhorse for batch flows: suppliers or internal systems drop files into a directory,
equate picks them up — and the same connector can carry results back out as an
[FTP upload action](https://equatetravel.ai/docs/guides/pipelines.md#delivery-formats).

## What it's used for

| Use | Direction | Where you wire it |
| - | - | - |
| Invoice drop folder | In | A [pipeline](https://equatetravel.ai/docs/guides/pipelines.md) input |
| Booking-data feed | In | A [booking data](https://equatetravel.ai/docs/guides/booking-data.md) file feed |
| Result delivery | Out | A pipeline **FTP upload** action |

## Creating the connector

**1. Choose the protocol**

**SFTP** (SSH, recommended), **FTPS** (TLS) or plain **FTP**.

**2. Connection details**

Host, port (defaults to the protocol's standard), and credentials — a username with
a **password**, or for SFTP a **private key**. Credentials are encrypted at rest and
never shown again once saved.

**3. Test connection**

The wizard connects before saving and reports success or the exact failure
(unreachable host, bad credentials, handshake problems) — so a broken connector
never gets created silently.

> [!TIP]
>
> Not the right person to fill in the server details? Use **Save & send invite** in
> the wizard to hand the half-finished connector to a technical colleague — they get a
> link to finish the setup. See [members & roles](https://equatetravel.ai/docs/guides/members-and-roles.md) for the
> **Technical** role, which can manage integrations without seeing financial data.

## Picking folders — no path guessing

You don't type folder paths into the connector. Where the connector is *used* — a
pipeline input or a booking-data feed — equate connects and lets you **browse the
server's directories** to pick the folder to watch. That keeps one server connection
reusable across many flows, each watching a different directory.

## How polling behaves

* Watched folders are checked on a regular cycle; new files typically enter the
  [work queue](https://equatetravel.ai/docs/guides/processing-invoices.md) within minutes.
* A file is ingested **once** — re-listing a folder never duplicates jobs.
* PDFs become one job each; CSV / Excel files are split into one job per row.

## Recommended server setup

* Create a **dedicated user** for equate, scoped to the exchange directory.
* Use **SFTP with a key** where possible.
* Have producers write files with a temporary name (e.g. `.part`) and rename on
  completion, so half-written files are never picked up.

## Security

The plain path is a host, a username and a password. The **Additional security**
section on the connector form holds the rest; none of it is needed to connect.

| Control | What it does |
| - | - |
| **SSH private key** (SFTP) | Authenticate with a key instead of a password. Paste the private key (OpenSSH or PEM) whose public half is on the server. |
| **Host-key pinning** (SFTP) | The first successful **Test connection** records the server's host-key fingerprint (`SHA256:…`, as `ssh-keygen -lf` prints it) and every later connection refuses a different key, exactly as `ssh` does. Paste the fingerprint from your IT team to pin it before the first connection. If the server is rebuilt, the connection fails with a message that says so; clear or update the pin and test again. |
| **PGP-encrypted files** | Files on the server can be encrypted to a key only equate holds; equate decrypts them on pickup. |
| **Encryption at rest** | Passwords, keys and passphrases are encrypted with AES-256-GCM before they are stored, under a key held outside the database, and are never shown again. Leave a credential blank on edit to keep it. |
| **Address checks** | The server must resolve to a public address; private and loopback addresses are refused. |

**Rotating a password or key**: add the new credential on the server, enter it on the
connector and save, then remove the old one. There is no gap. See
[connector security](https://equatetravel.ai/docs/connectors/security.md) for the whole picture.

> [card] [Next: deliver results by FTP](https://equatetravel.ai/docs/guides/pipelines.md)
>
> Add an FTP upload action to a pipeline and gate it by outcome.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.