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

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