---
title: "Set up SFTP data transfer with Klaviyo"
description: "Learn how to establish a connection to Klaviyo's SFTP server that can be used to import and export data into and out of Klaviyo."
url: "https://developers.klaviyo.com/en/docs/use_klaviyos_sftp_tool"
category: "Build with Klaviyo"
lastUpdated: "2025-09-16"
related: ["https://developers.klaviyo.com/en/docs/llms.txt","https://developers.klaviyo.com/en/docs/using_data_in_klaviyo.md"]
---

# Set up SFTP data transfer with Klaviyo

> This is the Markdown version of https://developers.klaviyo.com/en/docs/use_klaviyos_sftp_tool

Learn how to establish a connection to Klaviyo's SFTP server that can be used to import and export data into and out of Klaviyo.

## Before you begin

This feature is only available to Klaviyo users with an Owner, Admin, or Manager role. Learn more about <a href="https://help.klaviyo.com/hc/en-us/articles/115005231648-Understand-user-management-and-privileges" target="_blank">Klaviyo user roles</a>.

## You will learn

In this guide, you will learn how to set up your public SSH key in Klaviyo and use it to establish a connection to Klaviyo's SSH File Transfer Protocol (SFTP) server. Once connected, you'll be able to:

- Use Klaviyo's [SFTP import tool](https://developers.klaviyo.com/en/docs/sftp_import_tool.md) to import event and profile data
Transfer comma-separated files over SFTP to sync customer data via SFTP CSV ingestion.
- Use Klaviyo's [SFTP export tool](https://developers.klaviyo.com/en/docs/export_event_data_sftp.md) to export event data
Specify a range of events, time of day to run an export, and what cadence you'd like to export your latest event data at.

To use our import and export tools, you’ll first generate a public/private SSH key pair. Then, you’ll use your SFTP client to initiate an import/export.

### SSH key generation

Before getting started, generate a public/private key pair on your local machine. You can use a tool of your choice or the following options:

* MacOS or Linux - <a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" target="_blank">ssh-keygen</a>.
* Windows - the <a href="https://www.ssh.com/academy/ssh/putty/windows/puttygen" target="_blank">PuTTYgen</a> function of <a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html" target="_blank">PuTTY</a>.
* All platforms - within the <a href="https://developer.1password.com/docs/ssh/manage-keys/#generate-an-ssh-key" target="_blank">1Password</a> desktop app.

 Klaviyo uses <a href="https://aws.amazon.com/aws-transfer-family" target="_blank">Amazon Web Service’s Transfer Family</a> service to provision its SFTP server and handle authentication. Transfer Family will accept the <a href="https://docs.aws.amazon.com/transfer/latest/userguide/key-management.html" target="_blank">SSH key formats listed in its documentation</a>. AWS recommendeds `rsa-sha2-256`, `rsa-sha2-512`, `ECDSA` or `ED25519` algorithms.

Once you have generated your keys:

1. In Klaviyo, select **Integrations** from the side navigation.
2. On the _Integrations_ page, click **Manage data** in the upper right, then select **Import via SFTP**.
3. Click **Add a new SSH Key**.
4. Paste your public key into the SSH Key box.
   <img src = "https://files.readme.io/44d3bdc-SSH.png" alt = "Add new SSH key popup with key title and SSH key text boxes">
5. Click **Add key**.

## Establish an SFTP connection

You can use <a href="https://filezilla-project.org/" target="_blank">FileZilla</a>,  <a href="https://cyberduck.io/" target="_blank">Cyberduck</a> or an SFTP client of your choice to connect to Klaviyo’s SFTP server at sftp.klaviyo.com following key creation. To establish a connection:

- Your public key must be added in the previous step for Klaviyo to properly authenticate.
- You must connect with a machine that has the private key at the location your client specifies.
- You must specify your username assigned by Klaviyo. Passwords can be left blank, as key validation is used instead of a password. To find your username, navigate to the <a href="https://www.klaviyo.com/sftp/set-up" target="_blank">**SFTP setup** tab (within _SFTP Data Transfer_)</a>, where you’ll find it under _Username_.

Your connection should be set up as follows:

- **Server**
  sftp.klaviyo.com
- **Username**
  Your\_SFTP\_Username (_abc123\_def456_ in the example above)
- **Port**
  22
- **Password**
  empty
- **SSH Private Key**
  The private key associated with the public key generated in previous steps

In Cyberduck, your connection would look like this:

<img src = "https://files.readme.io/5960af9-duck.png" alt = "SFTP connection details with server, URL, username, password, and private key settings">

## Next steps

Now that you're connected to Klaviyo's server, check out our [SFTP import tool](https://developers.klaviyo.com/en/docs/use_klaviyos_sftp_tool.md) and [SFTP export tool](https://developers.klaviyo.com/en/docs/export_event_data_sftp.md) guides to learn how to import and export data into and out of Klaviyo.

## Additional resources

- [Bulk Import Profiles API](https://developers.klaviyo.com/en/docs/use_klaviyos_bulk_profile_import_api.md)
- [Export data from Klaviyo](https://developers.klaviyo.com/en/docs/export_data_from_klaviyo.md)
