SFTP SSH Connector bad gateway error in logic apps workflow

Ramesh Selvaraj 0 Reputation points
2024-12-23T14:05:09.9566667+00:00

Can you help me to solve the below error.

I am getting the below error in logic apps SFTP SSH connector when i am trying to connect to the on prem SFTP server. I am getting a successful response when I use the SFTP In-app connector.

Failed to create connection: { "error": { "code": 504, "source": "f0d3d9b65e5a7164.15.common.logic-westeurope.azure-apihub.net", "clientRequestId": "ea3ea7a3-4488-49b7-b78c-39db6a850df0", "message": "BadGateway", "innerError": { "status": 504, "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\r\nclientRequestId: ea3ea7a3-4488-49b7-b78c-39db6a850df0", "error": { "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": "sftpwithssh-we.azconn-we-002.p.azurewebsites.net" } } }

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,279 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 16,786 Reputation points
    2024-12-23T19:26:06.39+00:00

    Hi @Ramesh Selvaraj Thank you for posting the question here.

    The Logic App STFP built-in connector can directly connect to an SFTP server by using a connection string without an on-premises data gateway. SFTP-SSH is a managed shared connector and would need connection established through on-premises gateway. Please refer the following information shared on the documentation Connector technical reference

    User's image

    If you prefer to use the SFTP-SSH managed connector, please refer to the documentation Connect to on-premises data sources from Azure Logic Apps that provides instruction on howe you can install the data gateway onto your on-premise machine.

    Hope this helps!


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    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.