---
schema_version: "1"
id: da14d2e1aeb2abbdff75674df7f260af97909ffd97773fa054afdd2d23905322
title: Configure Preferred Authentication
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/sftp-connector/latest/sftp-preferred-authentication.md
canonical_url: https://docs.mulesoft.com/sftp-connector/latest/sftp-preferred-authentication
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e0c3db6032b830cf0a28843cf35109fd35ea9b5c324e2db3621233fbb64ca7f3
description: MuleSoft Documentation Site
release: "2.7"
latest: true
---
---
product: SFTP Connector
version: 2.7
is-latest-version: true
---

# Configure Preferred Authentication

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Anypoint Connector for SFTP (SFTP Connector) enables you to configure preferred authentication
methods in the SFTP global configuration of the connector. The following example shows how to
configure different authentication methods in Anypoint Studio.

1.  In Studio, navigate to the **Global Elements** tab.

2.  In the Choose Global Type window, type `sftp` in the search bar.

3.  Select **SFTP Config**.

4.  Click **OK**.

5.  Set **Preferred authentication methods** to **Edit inline**.

6.  Click the plus sign to add one of the valid authentication methods: `GSSAPI_WITH_MIC`,
    `PUBLIC_KEY`, `KEYBOARD_INTERACTIVE`, or `PASSWORD`.

7.  Set **Value** to `GSSAPI_WITH_MIC`.

8.  Complete the remaining connection fields.

9.  Click **Test Connection…​**.

10. Click **OK**.

![SFTP Configuration with preferred authentication field set to GSSAPI\_WITH\_MIC](/mulesoft/current/en-us/sftp-connector/latest/_images/sftp-preferred-authentication.png)

In the **Configuration XML** editor window, the configuration looks like this:

```xml
<sftp:config name="SFTP_Config" doc:name="SFTP Config" >
		<sftp:connection host="localhost" >
			<sftp:preferred-authentication-methods >
				<sftp:preferred-authentication-method value="GSSAPI_WITH_MIC" />
			</sftp:preferred-authentication-methods>
		</sftp:connection>
	</sftp:config>
```

## See Also

- [SFTP Connector Examples](https://docs.mulesoft.com/sftp-connector/latest/sftp-examples)
