SFTP error when connecting from Azure Data Factory

Koen van Wielink 20 Reputation points
2025-05-06T15:20:08.19+00:00

When testing a connection from Azure Data Factory to an SFTP server which I created on a storage account, I receive the following error when creating the linked service:

Meet network issue when connect to Sftp server '<saaccountname>.<sftpuser>@<saacountname>.blob.core.windows.net', SocketErrorCode: 'NoRecovery'. A non-recoverable error occurred during a database lookup

The SFTP server is using the SFTP feature of an Azure Storage account. The storage account has public network access enabled from all networks. The SFTP user is set to authenticate with an SSH key pair and has sufficient permissions to read and write files. The SSH key is base64 encoded and stored in a key vault secret.
When using the same SFTP user and SSH key I am able to connect using Filezilla from my local machine and transfer files, so I know the SFTP server is working.

The configuration in ADF for the linked service is as follows:

User's image

Any help as to why I am getting this error would be greatly appreciated.

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

Accepted answer
  1. J N S S Kasyap 2,040 Reputation points Microsoft External Staff Moderator
    2025-05-06T18:01:46.8633333+00:00

    Hi @Koen van Wielink

    The SFTP server address should not include the username. Including the username in the host field leads to DNS resolution issues, resulting in the 'NoRecovery' socket error.

    User's image

    Host: <saaccountname>.blob.core.windows.net
    This is the correct format for the Azure Storage SFTP endpoint.

    The SFTP connector supports an RSA/DSA OpenSSH key. Make sure that your key file content starts with "-----BEGIN [RSA/DSA] PRIVATE KEY-----". If the private key file is a PPK-format file, use the PuTTY tool to convert from PPK to OpenSSH format.

    Ensure that ADF can access the SFTP endpoint over port 22. If you're using a Self-hosted Integration Runtime (SHIR), make sure the machine hosting the SHIR can reach the storage account's SFTP endpoint.

    Please refer the below Microsoft Doc for more information
    https://learn.microsoft.com/en-us/azure/data-factory/connector-sftp?tabs=data-factory
    https://learn.microsoft.com/en-us/azure/data-factory/connector-troubleshoot-ftp-sftp-http

    I hope this information helps. Please do let us know if you have any further queries.


    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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