# Creating SFTP Credentials

[The SFTP Data Operation](../../data-operations/the-sftp-data-operation) requires the use of SFTP credentials. Airkit supports connecting to an SFTP server via either Username / Password or Authentication Key. This article will walk through creating an SFTP credentail to use with the SFTP Data Operation.

SFTP credentials are created in [Console.](../../console/console) When inside the studio, click the Airkit Logo at the top of the builder bar to return to the console. Select integrations from the options on the left. With **Connected Accounts** selected, click the **New** button in the top right corner. Select SFTP From the integration.

![organizing info](https://1191388742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhOn9CLWoV9VfJeM5EDAa%2Fuploads%2Fgit-blob-4405674028bf3146669f24b485b9c59edfd8d591%2Fcreating-sftp-credentials-v1715-0.png?alt=media)

\[block:callout] { "type": "info", "body": "If you don't have SFTP as an option for the integration dropdown, please contact [Airkit Support](mailto:support@airkit.com)." } \[/block] The Name property applies to either Authentication Model. Enter a name that will allow you to identify the credentials.

### Using Username / Password

To use the standard username and password method. Fill out the username and password and click create. Understand that while this method is available, this method is not as secure as the private key method.&#x20;

![organizing info](https://1191388742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhOn9CLWoV9VfJeM5EDAa%2Fuploads%2Fgit-blob-690e84d480f7b7607ac8e740b8517b99d4c8c861%2Fcreating-sftp-credentials-v1715-1.png?alt=media)

### Using Private Key

Using a private key will not use a password. To configure the Private key, the public key must be part of the **authorized\_keys** on the server. In the SFTP credentials box enter the username and the private key. Click create.

![organizing info](https://1191388742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhOn9CLWoV9VfJeM5EDAa%2Fuploads%2Fgit-blob-91e9087a19b7eff55ac2884074c5bdb37064d19c%2Fcreating-sftp-credentials-v1715-2.png?alt=media)

### \[block:callout] { "type": "info", "body": "Airkit supports private keys in OpenSSH format." } \[/block] Configuring an App To Use Credentials

Once the credentials have been configured, the credentials need to be added to an app through [Configuration Builder](../../studio/builder-bar/configuration-builder). Open the app and select configuration builder. Scroll down to the Integrations section. Select **New > Adapters > SFTP**.&#x20;

![organizing info](https://1191388742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhOn9CLWoV9VfJeM5EDAa%2Fuploads%2Fgit-blob-985857a09a295a35e8f0c79578f505ef8ced91b0%2Fcreating-sftp-credentials-v1715-3.png?alt=media)

Next, select the created credential in the dropdown under Connected Account.

To use this in a [Data Flow](../../studio/data-flows) go to [Connection Builder](../../studio/builder-bar/connection-builder). Select the data flow and add a data operation of type SFTP. Select the integration you created from the dropdown option for the data source. Fill out the rest of the options from [the SFTP Data Operation](../../data-operations/the-sftp-data-operation).
