# FTP(S)

Stockeo can connect to an FTP server to automatically retrieve feeds from your supplier. Three protocols are supported: FTP, FTPS, and SFTP.

## Connection Setup <a href="#connection-setup" id="connection-setup"></a>

<figure><img src="/files/zMVg3XQOHPaugQKkZh9j" alt="Configuration screen showing Stockeo feed source settings for an FTP channel"><figcaption><p>Stockeo feed source configuration for FTP channel</p></figcaption></figure>

#### Protocol <a href="#protocol" id="protocol"></a>

Choose `ftp://`, `ftps://`, or `sftp://`. Changing the protocol automatically updates the default port.

<table><thead><tr><th width="105">Protocol</th><th width="548">Description</th><th>Default port</th></tr></thead><tbody><tr><td><strong>ftp://</strong></td><td>Standard, unencrypted FTP. Credentials and file data are transmitted in plain text.</td><td>21</td></tr><tr><td><strong>ftps://</strong></td><td>FTP over TLS (encrypted). Stockeo handles both explicit and implicit TLS automatically. If your server uses a self-signed certificate, enable the A<strong>ccept self-signed certificate</strong> option.</td><td>990</td></tr><tr><td>sftp://</td><td>SFTP over SSH — a completely separate protocol from FTP/FTPS. Supports <strong>password</strong> and <strong>private key</strong> authentication.</td><td>22</td></tr></tbody></table>

#### Host <a href="#host" id="host"></a>

Hostname or IP address of the server (e.g. `files.example.com`).

#### Port <a href="#port" id="port"></a>

Port number. Defaults: `21` for FTP, `990` for FTPS, `22` for SFTP.

#### Accept self-signed certificate <a href="#accept-self-signed-certificate" id="accept-self-signed-certificate"></a>

FTPS only. Enable this option if the server uses a self-signed TLS certificate.

#### Username <a href="#username" id="username"></a>

Your FTP/SFTP login name.

#### Password <a href="#password" id="password"></a>

Password for FTP, FTPS, and SFTP with password authentication.

#### Private Key <a href="#private-key" id="private-key"></a>

SFTP with private key authentication only. Paste the full contents of your OpenSSH private key (beginning with `-----BEGIN OPENSSH PRIVATE KEY-----`). The server must have the corresponding public key in its `authorized_keys` file.

#### File path <a href="#file-path" id="file-path"></a>

The **File path** field tells Stockeo where to look for product feed. It supports three formats, each producing different processing behaviour.

**Static path**

A fixed path to a single file.

```
/inventory/stock.csv
```

Stockeo checks whether the file has been **modified** since the last run. If the file has not changed, it is skipped and the run is recorded as `File has not changed since last run`. If it has changed, the file is downloaded and processed.

**Wildcard path**

A path with `*` or `?` wildcards in the filename.

```
/inventory/stock_*.csv
```

Stockeo lists the directory and matches all filenames against the pattern (case-insensitive). For each matching file it checks the modification time and only processes files that are newer than the previous run. Multiple files can be processed in a single run.

### Firewall Whitelist <a href="#firewall-whitelist" id="firewall-whitelist"></a>

Stockeo connects to your FTP server from a fixed IP address. If your supplier's server is protected by a firewall, you or your supplier will need to whitelist the following IP:

```
138.197.226.212
```

Pass this address to whoever manages the FTP server so they can allow incoming connections from it.

### Connecting and Testing <a href="#connecting-and-testing" id="connecting-and-testing"></a>

After filling in all fields, click **Connect**. Stockeo will establish a connection to the server and save the credentials.

If the file is not found at the given path, the connection still succeeds but a warning is shown next to the **File path** field. You can proceed with saving and Stockeo will look for the file again at the next scheduled run.

Once connected, the **Edit** button appears and all fields become read-only. Clicking **Edit** unlocks the fields so you can update the connection details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.stockeo.solvenium.com/settings/feed-source/ftp-s.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
