> For the complete documentation index, see [llms.txt](https://docs.highcohesion.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.highcohesion.com/creating-streams/keys-1/key-library/ftp-and-sftp.md).

# FTP and sFTP

One of the most popular connections is FTP or sFTP, a method normally used for exchanging files between servers. This is often used where companies require CSV, XML or JSON files to be deposited or collected from specified servers at certain times.&#x20;

Adding a FTP connection to High Cohesion is simple, you will require the following details about the FTP server that is being connected to:

* **Host / Address**\
  This can be either a fully qualified domain name e.g. ftp.highcohesion.com or an IP address e.g. 192.168.2.1
* **Username**\
  The username required to connect.
* **Password**\
  The password required to connect.
* **Port**\
  The port required to connect, please note that the default port for FTP is 21 and the default port for sFTP is 22.
* **Passive**\
  This is a `true / false` option, allows a passive connection setting to be activated.&#x20;
* **Remote Path**\
  This is an optional setting that allows a base path for your connection to be set. For example `/export/orders/`

{% hint style="info" %}
Please note that the Remote Path setting can be overridden and not appended to in Source/Destination and Stream settings.&#x20;
{% endhint %}

Once you have gathered the details above you can add the credentials to High Cohesion by following the guide on [adding a new key](/creating-streams/keys-1.md#add-a-new-key), selecting FTP from the system list.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.highcohesion.com/creating-streams/keys-1/key-library/ftp-and-sftp.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.
