---
schema_version: "1"
id: fb79a24ac38ce1744a2ce618953a515f900447d4793692fc9d383bcb510f7149
title: Set Up an SFTP Connection
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-int/guides/sftp/c360-a-set-up-sftp-connection.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-set-up-sftp-connection.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cc67c1a5014e5d2e2821bb153bf11934102979c7234b6a9a096812842d7e5952
products:
  - Data 360 Integration Guide
  - Data 360 Developer Documentation
---
# Set Up an SFTP Connection

Set up an SFTP connection to import data from disparate, siloed sources. Bring CSV or Parquet data files from your SFTP server into Data 360 using SSH to ensure that the data is encrypted in transit.

1.  In Data Cloud, go to **Data Cloud Setup**.

2.  Under External Integrations, select **Other Connectors**.

3.  Click **New**.

    **note:** To create data streams (not activations), choose a connector from the **Source** section.

4.  Select Secure File Transfer (SFTP) and click **Next**.

5.  Enter a connection name, connection API name, and enter the authentication details.

    **important:** Don't include special characters like semicolons in sensitive fields like passwords.

    | Field                 | Description                                                                                                                                                                                                     |
    | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Authentication Method | Select SSH Private Key or SSH Private Key & Password.                                                                                                                                                           |
    | Username              | The SFTP account used to authenticate the connection.                                                                                                                                                           |
    | Password              | The password to authenticate the user.                                                                                                                                                                          |
    | SSH Private Key       | To secure access, create an SSH key pair consisting of a public key and a private key. The public key is associated with the user on your SFTP server, and the private key is submitted in the SFTP connection. |
    | Passphrase            | Add an optional passphrase to protect your Private Key for additional security.                                                                                                                                 |
    | Host Name             | The SFTP server’s name or address.                                                                                                                                                                              |
    | Port: 22 (default)    | The port that the SFTP server is running on.                                                                                                                                                                    |
    | Parent Directory      | The base directory where your data stream subfolders reside, for example, `doc/datacloud/sftp/`                                                                                                                 |

6.  To review your configuration, click **Test Connection**.

7.  Click **Save**.

After the connection details are accepted, the connection is ready to use and your Data Aware Specialist can create data streams.

If your SFTP server is behind a firewall, see [IP addresses](https://help.salesforce.com/s/articleView?id=data.c360_a_data_cloud_ip_address_allowlist.htm&type=5) for the needed Data 360 public proxy allowlist entries.

SSH keys consist of a public key and a private key and an optional passphrase. The public key is used on your SFTP server to encrypt the data before sending it to Data 360. The private key is entered in your SFTP connection details. Data 360 uses it to decrypt your data. SSH key-pair generation can be done with multiple SSH key generator utilities. Multiple algorithms are available for key generation and the SFTP connector supports both OpenSSH and RSA up to 4096-bit encryption. For example, the command line entered in a terminal to create the key pair is \<ssh-keygen -b 4096 -t rsa>.

**note:** The SFTP connector connects to SFTP servers on any platform, including AWS Transfer Family. However, the AWS Transfer Family implementation of SFTP can differ from the standard SFTP protocol. These differences can limit some SFTP connector features. If you use AWS, store your data in Amazon S3 and ingest it using the Amazon S3 connector. See [AWS Transfer Family User Guide](https://docs.aws.amazon.com/transfer/latest/userguide/transfer-file.html).

## Set Up Pretty Good Privacy (PGP) Encryption (CSV only)

You can use Salesforce Data 360 to process your PGP data encrypted at rest on your SFTP server. PGP uses a key pair consisting of a public key and a private key. You use the public key to encrypt the data so that it’s secure at rest. Then the recipient uses their private key to decrypt the data.

To create the keys, you use a third-party key-generating software and then create a schema file so that Data 360 can establish the metadata needed to build your data stream and associated data lake object.

1.  Create the PGP keys.

    Multiple key generators are available. These suggested commands have been tested.
    1.  Use gpg --full-generate-key to create the PGP private and public keys.

    2.  Use gpg --output private.asc --armor --export-secret-key \<key userid> to extract the private key in armor format.

2.  Create a schema file to send metadata to Data Cloud.

    To create the file, you extract rows from an existing file to establish the schema. We recommend copying 1,000 rows, up to 20 MB.
    1.  Using a data file that you intend to load into Data Cloud, copy 1,000 rows and save them in a file named schema.csv in the same directory as the data file.

    2.  Initiate the PGP encryption process.

    3.  During the encryption process, your schema.csv file is replaced with a schema.pgp file.

    4.  Add the file to the Parent Directory.

    **note:** You can follow the [record deletion process](https://help.salesforce.com/s/articleView?id=data.c360_a_delete_data_stream_records_deletion_file.htm&type=5) to delete this schema file.

## Next Step

- [Create an SFTP Data Stream](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-create-sftp-data-stream.md)

## See Also

- [Knowledge Article: SFTP Target Connection Error](https://help.salesforce.com/s/articleView?id=002424881&type=1)
- [Knowledge Article: Creating an SSH Key and Configuring an SFTP Setup](https://help.salesforce.com/s/articleView?id=002722669&type=1)
- [Knowledge Article: Delete Permission For Establishing a Target SFTP Connection](https://help.salesforce.com/s/articleView?id=004052152&type=1)
