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
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.