> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://fyno.io/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://fyno.io/docs/_mcp/server.

# SFTP

> Connect an SFTP server to Fyno Connect using a password or private key, set the base path for your files, and create cohorts from the data in those files.

Connect an SFTP server to Fyno Connect with your server details and credentials. Once connected, Fyno reads the files under the base path you specify, and you can build cohorts from the data in them.

## Connect your SFTP server

#### Open SFTP from Databases

Go to **Databases** and click **SFTP**. The **Add a SFTP database** pop-up opens.

#### Enter the connection details

Fill in the following fields:

* **Custom Name**: A name to identify this connection in Fyno Connect.
* **Host Address**: The host address of your SFTP server.
* **Port**: The port your SFTP server listens on.
* **User Name**: The username used to access the server.
* **Password**: The password for that user. Leave this blank if you authenticate with a private key.
* **Private Key**: The private key used to access the server. Leave this blank if you authenticate with a password.
* **Base Path**: The directory on the server that Fyno reads files from.

All fields except Custom Name are masked by default. Click the eye icon on a field to view its value.

![Add a SFTP database pop-up](/docs/_fern-img/ee58833fc2cdbfafbd5050c0c0cadb1f83c9e4fa69d4fd2c71395a50e0f59fda.webp)

#### Add the database

Click **Add Database**. Fyno tests the connection and saves it once the test succeeds. The connection then appears under **Connected DBs** on the same page.

#### Create cohorts

You can now create cohorts from the data in the files under the base path. See [Create Cohorts](./how-to-create-a-cohort-in-fyno-connect).