Hi,
We are trying to sftp files using the SftpClient class from the Renci.SshNet package in an Azure function but frequently it throws an error as - Error System.Net.Sockets.SocketException (10060): 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.
We have already whitelisted all the IP ranges for the Function App where the Azure Function is hosted for the specific region, on the destination server.
Also, sometimes the sftp connection is successful as well but most of the times the connection fails with the above error.
Can you please advise what could be the issue here.
Is it possible that the IP for the function app might go beyond the list of IP ranges provided by Microsoft for the specific region, due to which the firewall is blocking the connection in the destination server.
Thanks!