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

# 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/2.6/_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/2.6/sftp-examples)
