SFTP Connection Issue

Kothai Ramanathan 946 Reputation points Microsoft Employee
2020-09-21T12:55:28.343+00:00

I am trying to copy from file share to sftp and getting the below error.

Message=Meet network issue when connect to Sftp server 'xxx', SocketErrorCode:
'TimedOut'.,Source=Microsoft.DataTransfer.ClientLibrary.SftpConnector,''Type=System.Net.Sockets.SocketException,
Message=A connection attempt failed because the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to respond,Source=Renci.SshNet,'"

However, the same pipeline works in a different environment (to the same sftp server). I have compared the linked service, dataset and the pipeline code between the two environments are they are the same.

When I test the connection in the linked service, it is successful. Any pointers on the above error will be helpful, thanks.

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

Accepted answer
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2020-09-21T19:50:57.61+00:00

    Hi @Kothai Ramanathan ,

    Thanks for your query. This could be because of either of the below 2 reasons:

    a. It could be related to a firewall issue, if you are using SHIR on either source or sink and if the access is restricted to IPs that are whitelisted in the firewall rules of your SFTP, then could you please make sure to whitelist the IP address of the machine that hosts your SHIR. If you are using Azure IR, then you can choose to add Azure Integration Runtime IPs into the allow list.

    Here is the download link: Azure IP Ranges and Service Tags – Public Cloud

    b. Another possible reason I could think of is the number of Max concurrent connections to your SFTP server. Could you please check out what is the maximum concurrent connection limit to your sftp server? Based on that please set your sink Max concurrent connection less than the SFTP concurrent connection limit set by SFTP admin.

    26177-image.png

    Hope this information helps. If you still experience the issue, please do share the failed pipeline runID for further investigation.

    Thank you


    Please do consider to click on "Accept Answer" and "Upvote" on the post that helps you, as it can be beneficial to other community members.


2 additional answers

Sort by: Most helpful
  1. atul sahu 6 Reputation points
    2021-04-30T09:20:49.58+00:00

    Hi Team,

    Is there a set of standard-setting (like timeout value ), I need to share with the SFTP server admin?

    My pipeline keeps failing on the linked service test, 2/5 times.

    0 comments No comments

  2. KANNIBALA MISKIN KANNISAH 31 Reputation points
    2022-12-12T05:56:49.987+00:00

    Hi

    I'm also facing the same issue.
    Flow was working fine in DEV environment but it's getting failed in TST.

    Copy activity- File share (SHIR) to SFTP (AutoResolveIntegrationRuntTime).

    Pipeline RunID: 3a9964b0-c33f-4253-a732-30d14f21c0e6
    Run ID: 003231b9-be86-4f81-87c0-f828801ecb0a

    @KranthiPakala-MSFT

    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.