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

# ETL: SFTP Destination

> How to configure the SFTP destination component to write files to an SFTP server in your Integrate.io ETL pipeline.

The SFTP destination writes pipeline output to any Secure File Transfer Protocol (SFTP) server. It supports CSV, TSV, JSON, Parquet, XML, Excel (`.xlsx`), and Fixed width output formats, with optional compression and PGP encryption.

Once your connection is set up, see [File Storage Options](https://www.integrate.io/docs/etl/file-storage-options.md) for the full set of write options (output formats, compression, PGP, and more) shared across every file storage provider.

## Connection Setup

See [SFTP Source](https://www.integrate.io/docs/etl/using-components-sftp-source.md#connection-setup) for steps to create and configure an SFTP connection in Integrate.io ETL, including firewall rules, authentication options, and SSH tunnel setup.

***

## Destination Configuration

### Connection

Select your SFTP connection from the dropdown, or create a new one.

### Target Directory

The path on the SFTP server where output files will be written. Paths must begin with `/`. Integrate.io prepends the slash automatically if omitted. One or more files are created in this directory. New destination components default to **Copy into the existing directory**, so the directory must already exist before the job runs. To write to a new directory on each run, select a different [destination action](#destination-action) and use [package variables](https://www.integrate.io/docs/etl/using-and-setting-variables-in-your-packages.md) to generate unique directory names (e.g. `/output/${_JOB_ID}`).

> [!NOTE]
>
> SFTP has no bucket or container field. The path is relative to the SFTP server root.

<Snippet file="snippets/file-storage-destination-options.mdx" />

***

## FAQ

**Which destination actions are available for SFTP?**

All five destination actions are available: fail if exists, delete and recreate, replace files, copy to existing directory (with character encoding), and copy to new directory.

**Can I write to a different SFTP server than the one I read from?**

Yes. The source and destination components each have their own connection. You can use different servers, credentials, or paths.

***

## Related

> [card] [SFTP Source](https://www.integrate.io/docs/etl/using-components-sftp-source.md)

> [card] [File Storage Options](https://www.integrate.io/docs/etl/file-storage-options.md)

> [card] [Integrate.io IP Address List](https://www.integrate.io/docs/etl/integrateio-etls-ip-list.md)

> [card] [SSH Tunnel Access](https://www.integrate.io/docs/etl/allowing-integrateio-etl-access-to-my-server-behind-a-firewall.md)

> [card] [Using Variables in Packages](https://www.integrate.io/docs/etl/using-and-setting-variables-in-your-packages.md)

> [card] [SFTPtoGo](https://www.integrate.io/docs/etl/allowing-access-to-my-file-data-on-sftptogo.md)


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