Failed to connect to Sftp server Server HMAC algorithm not found. Azure Data Factory

Elliott Kurtz 20 Reputation points
2025-10-20T14:02:46.02+00:00

I am trying to connect to an SFTP site from Azure Data Factory and receive the error message Failed to connect to Sftp server 'sftp.***.com'. Server HMAC algorithm not found. I can connect to the server from my computer bash from which the logs indicate support for hmac-sha2-256-etm and hmac-sha2-512-etm. I can't figure out what algorithms ADF supports or is expecting. I don't have admin access to the SFTP server so I cannot change what algorithms it uses. How can I get this connection to work?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

Answer accepted by question author
  1. Dio Xavier 265.5K Reputation points Volunteer Moderator
    2025-10-20T14:13:28.19+00:00

    Hello

    Welcome to the Microsoft Azure community

    This error occurs because Azure Data Factory (ADF) supports a specific set of HMAC algorithms and does not support the “-etm” variants (such as hmac-sha2-256-etm or hmac-sha2-512-etm) required by your SFTP server. When the server does not offer compatible algorithms, the connection fails.*

    Since you don’t have administrative access to the SFTP server, you have two possible approaches:

    1. Ask the SFTP server administrator to enable one of the algorithms supported by ADF, such as:
      • hmac-sha2-256
      • hmac-sha2-512
      • hmac-sha1
      Use an intermediary layer, such as an Azure VM or an Azure Function App, to connect to the SFTP server with the supported algorithms and then expose or transfer the data to ADF through HTTPS or Azure Blob Storage.

    For reference, you can check the official Microsoft documentation on SFTP connector encryption and compatibility:

    Securely connect to SFTP in Azure Data Factory

    In summary, this is not a misconfiguration within ADF but rather a cryptographic compatibility issue between ADF’s supported HMAC algorithms and those available on the SFTP server. Resolving it requires aligning the supported algorithms or introducing a compatible bridge service.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.