What the SFTP data source is
The SFTP data source imports files from an SFTP server. It has the following features.- You can import CSV (delimited text), Excel, and Parquet files.
- You can authenticate with an SSH private key or a password.
- Host keys verify that you are connecting to the right server.
- You can import one file, or merge multiple files while importing.
- You can update published data on a schedule. See “Update on a schedule” below.
What to prepare
Ask your SFTP server administrator for the following information. This page uses these example values.
Use a private key file in OpenSSH format. You cannot use a PuTTY format (
.ppk) file.
1. Create a connection
You create a connection the first time you import a file. After that, you can select the saved connection.- Click the + ❶ next to “Data Frames” on the left.
-
Select “File” ❷ from the menu.
The “File Data Source” dialog opens.
- Click the “SFTP” tab ❶ at the top.
-
Select “Text (CSV, Delimited)” ❷.
The “SFTP” tab shows three types: Excel, Text (CSV, Delimited), and Parquet.
- The next dialog depends on whether you already have an SFTP connection. If you have none, the “Add Connection - SFTP” dialog opens automatically. Go to step 7.
-
If you already have a connection, the “SFTP - Select CSV Files” dialog opens. Click “Add Connection” ❶ at the top of the dialog.
The “Add Connection - SFTP” dialog opens.
-
Enter a clear name in “Connection Name” ❶. This page uses
Sales Data SFTP.
-
Enter
sftp.example.comin “Host” ❶.
-
Enter
22in “Port” ❶.
-
Enter
sftp-userin “Username” ❶.
- Check that “Authentication” is set to the default, “Private Key”.
-
To connect with a password, select “Password” ❶ in “Authentication”. A “Password” field appears in place of “Private Key File” and “Passphrase”.
This page uses a private key, so switch back to “Private Key” and continue.
-
Click “Select File…” ❶ under “Private Key File” and select your private key file. The path of the selected file appears to the right of the button.
If the private key has a passphrase, enter it in “Passphrase”.
-
Enter the path of the folder that holds your files in “Root Folder” ❶. In this example, it is
/Users/Shared/sftp-demo-en. If you leave “Root Folder” empty, Exploratory uses the home directory. Below it, the “Host Keys” section shows “No host key is set.” In the next section, you get the host key.
2. Check and save the host key
A host key verifies that you are connecting to the right server. Before you save the connection, get the server’s host key and check its fingerprint.-
Click “Get Host Key” ❶ in “Host Keys”.
After Exploratory gets the key, it shows “Key Type” and “Fingerprint (SHA256)” ❷.
- Compare the fingerprint with the one your server administrator gave you. If they match, continue. If they don’t match, don’t save the connection. Ask your administrator.
-
Click “Add” ❶ at the bottom of the dialog to save the connection.
If you haven’t fetched the host key, Exploratory shows “Get the host key first.” and doesn’t save the connection. The host key is saved as part of the connection.
-
If you just created your first connection, the dialog for selecting files opens next. If you created the connection from “Add Connection”, the “Data Connections” list appears. Click the × ❶ at the top right to close it.

3. Select files and import
In this section, you merge the three CSV files in theorders folder and import them.
-
Select the connection you created, “Sales Data SFTP”, from the “Connection” drop-down ❶. The contents of the root folder appear in the list.

-
Click the
orders❶ folder to open it. The three files in the
ordersfolder appear.
-
If you have many files, type part of a file name in the “Search” ❶ box at the top right and press Enter to narrow the list. This page uses
2026_02. The list shows only
orders_2026_02.csv, which contains2026_02.
-
Click the × ❶ in the search box to clear the search.

-
Select the check box ❶ in the list header to select all three files.

-
Click “Import & Merge” ❶.
The “Import & Merge Text File Data” dialog opens and shows the names of the three files you selected.
To import only one file, select its check box and click “Import”.
-
Check the file contents and columns in the preview. The first column, “id”, holds the name of the file each row came from. Settings such as character encoding and delimiter work the same way as when you import a local CSV file.

-
Click “Import” ❶.
The “Create Data Frame” dialog opens.
-
Enter
orders_2026_q1in “Name” ❶. -
Click “Create” ❷.
Exploratory creates the data frame.
-
Check that “12,000 Rows 11 Columns” ❶ appears at the top of the data frame. The 4,000 rows from each of the three files are now in one data frame.
You can use the file names in the “id” column to summarize or filter the data by file.
Update on a schedule
The SFTP data source can update published data on a schedule. For how to set up a schedule, see Manage Schedules.- For a connection that uses a private key, Exploratory encrypts the contents of the private key file and sends it with the data when you publish.
- If Exploratory cannot read the private key file, it marks the data as not updatable.
If the SFTP server restricts source IP addresses
Scheduled updates connect to your SFTP server from Exploratory’s servers. If your SFTP server restricts source IP addresses, ask the SFTP server administrator.Limits and notes
- You cannot use a private key in PuTTY format (
.ppk). In PuTTYgen, use “Export OpenSSH key” in the “Conversions” menu to convert it to OpenSSH format, then select the converted file. - If the curl package of your installed R doesn’t support SFTP, the import stops with the error “EXP-DATASRC-36”. Reinstall the R packages from “R Packages” in the menu that opens when you click the user area at the bottom left of the start screen.
- If the server’s host key changes, it no longer matches the saved host key, and the import fails with the error “EXP-DATASRC-39”. If you changed the server’s key on purpose, open the connection settings and click “Get Host Key” to get it again. If you didn’t expect the change, ask the server administrator.
- If authentication fails, you get the error “EXP-DATASRC-38”. Check the username, the password, or the private key file and passphrase.
- If Exploratory cannot connect to the server, you get the error “EXP-DATASRC-41”. Check the host name and port, and check that the SFTP server allows connections from your IP address.
