---
schema_version: "1"
id: a9380bca0686604d14434a19285a10907f83e8ab2b261f6a5e93f2be1baa1572
title: 優先する認証を設定する
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/sftp-connector/1.6/sftp-preferred-authentication.md
canonical_url: https://docs.mulesoft.com/jp/sftp-connector/1.6/sftp-preferred-authentication
source_site: docs.mulesoft.com
content_type: documentation
content_hash: bae7d0ad4c8319c45b6f305a64d1da9a2d8bef7c3fcc992265938ebab90dc8fb
description: MuleSoft Documentation Site
release: "1.6"
latest: false
---
# 優先する認証を設定する

SFTP 用 Anypoint Connector (SFTP Connector) を使用すると、コネクタの SFTP グローバル設定要素で優先する認証方法を設定できます。次の例は、Anypoint Studio でさまざまな認証方法を設定する方法を示しています。

1. Studio で、​**\[Global Elements (グローバル要素)\]**​ タブに移動します。
2. \[Choose Global Type (グローバル種別の選択)\] ウィンドウで、検索バーに「​`sftp`​」と入力します。
3. **\[SFTP Config (SFTP 設定)\]**​ を選択します。
4. **\[OK\]**​ をクリックします。
5. **\[Preferred authentication methods (優先する認証方法)\]**​ を ​**\[Edit inline (インライン編集)\]**​ に設定します。
6. プラス記号をクリックして、いずれかの有効な認証方法 (​`GSSAPI_WITH_MIC`​、​`KEYBOARD_INTERACTIVE`​、​`PUBLIC_KEY`​、​`PASSWORD`​) を追加します。
7. **\[Value (値)\]**​ を ​`GSSAPI_WITH_MIC`​ に設定します。
8. 残りの接続項目を入力します。
9. **\[Test Connection…​ (接続をテスト…​)\]**​ をクリックします。
10. **\[OK\]**​ をクリックします。

![優先する認証項目が GSSAPI\_WITH\_MIC SFTP に設定されている SFTP 設定](/mulesoft/current/ja-jp/sftp-connector/1.6/_images/sftp-preferred-authentication.png)

**設定 XML**​ エディターウィンドウでは、設定は次のように記述されます。

```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>
```

## [](#関連情報)関連情報

- [SFTP Connector の例](https://docs.mulesoft.com/jp/sftp-connector/1.6/sftp-examples)