# 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](https://docs.langstack.com/welcome/get-started/learn-langstack/connectors/create-a-connector). For SFTP-specific details, proceed as follows:

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

![](https://2351945889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoxOh7gdjWdmqooFdYBY%2Fuploads%2Fe985nzie1GC5sj8zAXpf%2FSelectConn.png?alt=media\&token=2d3bc0a2-16a4-4475-8dd7-208f40d0aecc)

* 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](https://docs.langstack.com/welcome/get-started/learn-langstack/connectors/create-a-connector) section.
