Skip to content
Components Updated November 27, 2026

FTP

Load CSV files from FTP, FTPS or SFTP servers into Keboola tables with a password or private key, and pick files with a path or glob pattern.

Set up the connection once, then add a table for each file or group of files you want to load.

Before you start

You need

  • The host name, port and connection type (FTP, FTPS or SFTP).
  • A user that can read the files, with its password, or a private key for SFTP.
  • Keboola’s IP addresses allowed, if the server accepts connections only from known addresses. See IP addresses.
  • The path or glob pattern of the files you want.

What each tab needs

  • Prompt tab Kai, the Kai Agent button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai.
  • UI tab a browser.
  • CLI / API tab kbagent, connected to your project. The checks only read.

Create a new configuration of the FTP connector. To access the files on FTP, you need to set up access credentials.

Screenshot - FTP extractor server configuration

You can use a private key for the SFTP connection type. If you fill in the private key, the connector will use it for login instead of the password. You can also change the port for each connection method. The default port for FTP and FTPS is 21, and for SFTP, it is 22.

To create a new table, click the Add Table button and assign a name. It will be used to create the destination table name in Storage and can be modified.

Screenshot - FTP extractor create table

Configured tables are stored as configuration rows. Each table has a different setting, but all tables share the same credentials to the server.

For each table, you have to specify a path. Use the path to a specific file, or use the glob syntax (for testing the glob path, you can use the Glob tester (opens in a new tab)). If you want to list inside subdirectories (e.g., /dir/**/*.csv), please make sure that your FTP server supports a recursive list of directories.

Screenshot - FTP extractor download settings

  • New Files Only: The connector will keep track of downloaded files and will continue with the unprocessed files on the next run. To reset the state which keeps track of the progress and enables to continue with new files, use the Reset State button or uncheck the New Files Only option and run the connector again.
  • Decompress: All downloaded files will be decompressed (currently supporting ZIP and GZIP). All files in all archives will be imported into a single Storage table.

Now determine how to save the data in Storage.

Screenshot - FTP extractor save settings

  • The initial value in Table Name is derived from the configuration table name. You can change it at any time; however, the Storage bucket where the table will be saved cannot be changed.
  • Incremental Load will turn on incremental loading to Storage. The result of the incremental load depends on other settings (mainly Primary Key).
  • Delimiter and Enclosure specify the CSV settings.

There are three options for determining column names:

Screenshot - FTP extractor header & primary key

  • Set header manuallyenables the Set Header input to manually specify all columns in the table.
  • Read from the file headerassumes that each file has a header in the first row. A random file will be chosen to extract the header, and the first row in all files will be removed.
  • Generate automaticallynames the columns sequentially as col_1, col_2, and so on.

Primary Key can be used to specify the primary key in Storage. It can be used with Incremental Load and New Files Only to create a configuration that incrementally loads all new files into a table in Storage.

The data source connector can optionally add audit columns to the table. ftp_filename adds the processed file name, and ftp_row_number adds the row number in the source file.

Screenshot - FTP extractor audit

Save the table and click Run Component.

Check:

Prompt
Did the latest job of my FTP configuration succeed, and which tables did it load, with row counts?

Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.

The connector also supports Debug mode, all supported parameters are described in the GitHub repository (opens in a new tab).

Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.