I am able to connect SFTP using WinSCP tool providing same information. However, it's not working when I am trying to connect SFTP via Azure Logic app. I am getting an error message as follows:
Please check your account info and/or permissions and try again. Details: A reference was made to a file which does not exist.
Screenshot:
I am not able to resolve this error.
I think the issue is at the network perimeter. You are using WinSCP to connect to the SFTP server from your local network. Maybe that IP is already whitelisted for the port 22.
For Logic Apps to connect to your SFTP server, make sure the corresponding IP address is whitelisted for 22. Maybe Logic Apps is not able to reach the server on 22 port.