Azure Data Factory SFTP Connector Error

dvc 1 Reputation point
2020-08-10T07:07:51.223+00:00

I have been attempting to use the ADF SFTP connector to copy csv files from an external source. I can establish a connection successfully and the copy activity in ADF allows a preview of the records in the source files. However, when trying to copy the files to a blob storage sink, I get the following error:

"errorCode": "2200",
"message": "ErrorCode=UserErrorFailedToConnectToSftpServer,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to connect to Sftp server 'sftp.****'.,Source=Microsoft.DataTransfer.ClientLibrary.SftpConnector,''Type=Renci.SshNet.Common.SshConnectionException,Message=Server response does not contain SSH protocol identification.,Source=Renci.SshNet,'",
"failureType": "UserError",
"target": "Policy_Quote_Copy",
"details": []

I have tried using both basic and SSH public key authentication without success. Our external provider has added the public IP Addresses for IR in our region (North Europe) to their allowed list. We have also tried different settings for maximum allowed connections and checked if there is throttling on their side.

For reference, an example of a failed pipeline run id is: f3b6061b-2bf9-46b7-9229-2fa5ede209f3 and an associated failed run activity id: 9e94a1b0-e954-4a43-b8ae-0ac4d98eaa5f

Thank you for any help or advice you are able to provide.

dvc

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

2 answers

Sort by: Most helpful
  1. HimanshuSinha-msft 19,491 Reputation points Microsoft Employee Moderator
    2020-08-19T16:37:31.77+00:00

    Hello @dvc ,

    Since you are using the self hosted runtime ( SHIR) , you will have to white list the IP of the SHIR on the SFTP side . Can you please try that and let us know how it goes ?

    Thanks Himanshu
    Please do consider to click on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members


  2. Xavier Guerette 1 Reputation point
    2021-11-19T20:39:23.107+00:00

    Hi,

    Was this problem ever resolved? I am encountering the same error in Synapse Pipelines.

    Could you please let me know how to resolve it.

    Thank you.

    Sincerely,

    Xavier

    0 comments No comments

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.