---
schema_version: "1"
id: c674846d6844ef6627133bc6de2711e64898111537dbf8f6fe46674e4547065c
title: Configure Security Parameters of SSH Connection
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/sftp-connector/2.5/sftp-security-configuration-override.md
canonical_url: https://docs.mulesoft.com/sftp-connector/2.5/sftp-security-configuration-override
source_site: docs.mulesoft.com
content_type: documentation
content_hash: fb1716593d40eb84ffaa8914ebea908c1dbdf9ce6c1366f4314708330fcf4e08
description: MuleSoft Documentation Site
release: "2.5"
latest: false
---
---
product: SFTP Connector
version: 2.5
---

# Configure Security Parameters of SSH Connection

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

The following example shows how to configure the Anypoint Connector for SFTP (SFTP Connector) to
override security parameters using Anypoint Studio.

## Create a Configuration Override File

Follow these steps to create the file:

1.  Navigate to your `src/main/resources` folder.

2.  Create a config file, for example, `mule_sshd_config` with the following SSHD content. The file
    follows the format of an `sshd_config` file:

    ```xml
    KexAlgorithms ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group18-sha512,diffie-hellman-group17-sha512,diffie-hellman-group16-sha512,diffie-hellman-group14-sha256
    Ciphers aes128-cbc,aes128-ctr,aes192-cbc,aes192-ctr,aes256-cbc,aes256-ctr
    HostKeyAlgorithms ssh-rsa,rsa-sha2-256,rsa-sha2-512
    MACs hmac-sha1,hmac-sha2-256,hmac-sha2-512
    ```

    ![Contents of the override config file](/mulesoft/current/en-us/sftp-connector/2.5/_images/sftp-override-config-file-contents.png)

3.  Configure the keys and values accordingly. If you do not provide a key, then default values are
    used.

The following example shows the location of the config file within the `src/main/resources` folder:

![Location of the override config file](/mulesoft/current/en-us/sftp-connector/2.5/_images/sftp-override-config-file-location.png)

## Configure the Override File in Anypoint Studio

Follow these steps to configure the override file:

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.  Go to the **Advanced** tab.

6.  Under **Security Configuration**, enter `ssh config override file`.

7.  Enter the path to the file, for example: `${app.home}/mule_sshd_config`.

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-override-security-parameters.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" sshConfigOverride="${app.home}/mule_sshd_config">
    </sftp:connection>
</sftp:config>
```

## Verify the Override File Creation

Consider the following points when verifying the file creation:

- Search for the log `Read the config file` and verify that the filename and the configuration
  values fetched from the file are valid.

- Find ignored configs with the log line `Config keys found but ignored`.

- Check that if the connector is unable to locate the file, then it logs
  `Couldn’t locate config file`.

## See Also

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