> 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.
