# SFTP Connector

SFTP stands for Secure File Transfer Protocol, a protocol designed for exchanging files between host and destination in an encrypted form. It is an extension of the File Transfer Protocol (FTP) with the addition of a security mechanism. Through this, users can exchange data between other connectors in Langstack and the SFTP server.

## Create an SFTP Connector

The SFTP Connector falls under the File System Connector. To create an SFTP connector, follow the usual steps to create a connector as mentioned in [Create a connector](/welcome/get-started/learn-langstack/connectors/create-a-connector.md). For SFTP-specific details, proceed as follows:

* To define the FTP/SFTP connector, select “FTP/SFTP” from the list.

![](/files/YNytrd4IGv8T99ZQmewk)

* The FTP/SFTP details are displayed with Authentication type as “Basic”.
  1. Add the following details under the Server section:&#x20;
     * “Host name”: Enter the server details of the host.&#x20;
     * Port number”: By default, Langstack applications prefill it with the default SFTP port 22. However, users can change the port number as needed.
  2. Add the following details under the Credentials section:&#x20;
     * “Username”: Enter username for the connector.&#x20;
     * “Password”: Enter password for the connector.
  3. Select the following information under the Type section:&#x20;
     * “FTP” or
     * “SFTP”: SFTP is selected by default.

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_8/ch8ftpconnlabelled.png>" %}

* Save and test the connection as described in [Create a connector](/welcome/get-started/learn-langstack/connectors/create-a-connector.md) section.


---

# 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://docs.langstack.com/welcome/get-started/learn-langstack/connectors/sftp-connector.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.
