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

# SFTP

## Overview

Stigg's integration with SFTP allows you to export your product catalog, customer, and subscription data as files to an SFTP server you control.

<Note>
  Stigg's native data export integrations are included in the Scale plan, and are also available as an optional add-on to the Growth plan. See Stigg's pricing for more details.
</Note>

<Card title="View the full entity schema" icon="sitemap" href="./schema">
  See every table and column exported to your destination, organized by entity group.
</Card>

## Setting up the integration

### Prerequisites

An SFTP server you control. Authentication uses an SSH keypair — Stigg's public key is shown in the connect form, in the format `ssh-key <public key> some-comment`.

<Steps>
  <Step title="Create an SFTP user on your server">
    Log in to your SFTP server and create a dedicated user for Stigg to write to:

    <CodeGroup>
      ```bash Create user and add public key theme={null}
      sudo groupadd sftpwriter
      sudo useradd -m -g sftpwriter sftpwriter
      sudo su - sftpwriter
      mkdir ~/.ssh
      chmod 700 ~/.ssh
      cd ~/.ssh
      touch authorized_keys
      chmod 600 authorized_keys
      echo "ssh-key <public key from the Stigg connect form> sftpwriter-public-key" > authorized_keys
      ```
    </CodeGroup>

    <Note>
      The key, including the `ssh-key` prefix and comment, must be all on one line in `authorized_keys`, with no linebreaks.
    </Note>
  </Step>

  <Step title="Connect Stigg with SFTP">
    In [Stigg](https://app.stigg.io/), navigate to **Integrations > Apps > SFTP**.

    Enter the following information in the connection form:

    | Field                     | Description                                                                                                                                                                                                              |
    | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
    | Host name                 | The hostname or IP address of your SFTP server                                                                                                                                                                           |
    | Folder name               | The folder path where data will be written                                                                                                                                                                               |
    | Username                  | The SFTP user created above                                                                                                                                                                                              |
    | Port                      | The port your SFTP server listens on for SSH connections (typically `22`)                                                                                                                                                |
    | Delimiter character       | The delimiter used when writing CSV-formatted files                                                                                                                                                                      |
    | PGP public key (optional) | An ASCII-armored PGP public key (RSA or ECC, 2,048+ bits) to encrypt files at rest, in addition to in-transit encryption. Can't be added or changed after the destination is created — create a new destination instead. |

    Click **Test & connect**.

    <Warning>
      In addition to write access to the configured folder, the SFTP user needs write access to a `_manifests/` directory at the SFTP root — Stigg writes a per-transfer manifest file there, even if your data lands in a subfolder.
    </Warning>
  </Step>

  <Step title="Select entities to export">
    After entering your connection details, expand the **Entities to export** section to choose which entity groups to include in the sync. All groups are selected by default.

    See [Exported entities](./overview#exported-entities) for a description of each group.
  </Step>
</Steps>


## Related topics

- [Exported entities](/documentation/importing-and-exporting-data/export/overview#exported-entities.md)
- [Sync process, schedule, manual sync, and sync history](/documentation/importing-and-exporting-data/export/overview#sync-process.md)
