question

HugoBecerra-1778 avatar image
0 Votes"
HugoBecerra-1778 asked ·

Logic App - SFTP SSH Connector not working with Adobe SFTP

I'm working with an Adobe SFTP trying to create a Logic app to deal with some files from a CRM. The problem is that I can't connect with the SFTP, I'm getting the error "Key exchange negotiation failed". I already checked the keys, tried to create new keys, but it is not working. I also tried with a SFPT Client (filezilla) and I could connect without any issue to the server.

Thanks for your help in advance.

azure-logic-apps
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @HugoBecerra-1778 , Sorry for the delay in response, just checking back. Please let us know if the issue is still persisting?


0 Votes 0 · ·

Hello @HugoBecerra-1778 ,Could you please confirm if you are able to connect with only username and password instead of private key ?

0 Votes 0 · ·

Hello @HugoBecerra-1778 , Just checking back, could you please let us know if you need further help in this matter.

0 Votes 0 · ·

1 Answer

SatishBoddu-MSFT avatar image
1 Vote"
SatishBoddu-MSFT answered ·

Hello @HugoBecerra-1778 , We are able to repro the issue as you mentioned the error "Key exchange negotiation failed". We have also attached the below images to show the step by step process which successfully connects to SFTP server via SFTP-SSH connector.


Issue Repro: Reason, connection parameters incorrect, also please check the server firewall rules+ports, plus the SSH private key.


12321-1-repro.png


Walk-through SFTP-SSH connector, Only Key file: Logic Apps, sample use of SFTP gateway-BlobStorage from marketplace.


Step1 : Create the SFTP gateway from Marketplace, used to quickly demonstrate only. There are many SFTP server products in the market.


12294-2-sftp-gw-blob.png


Step 2: Create VM and Blob storage account.


Step 3: Create new user on SFTP Gateway server, and download the private key file and copy the content fully.


12284-5-rsa-key.png


Step 4 : Make use of SFTP-SSH connector in your logic app, as shown in below image settings.


12314-6-sftp-ssh-connector.png


If we run the Logic App, we can see the results.


12361-final-la-success.png


In this sample, I have created the new file in the blob container, via logic app's SFTP-SSH connector.


12362-4-blobconatiner.png



Extra Validation: No use of Logic App.
Access SFTP server from C# code, Back-end application with ONLY Key file. sample to display the directories on the SFTP Server.


12263-7-csharp-pub-key-usr.png


Please check the SFTP server's Ports+Firewall+ how the SSH keys are generated on your side.


For more info please visit these documents:


Prerequisites


OpenSSH in Windows


Please let us know if you need further help.




[5]: /answers/storage/attachments/12342-3-vm.png

[6]: /answers/storage/attachments/12343-4-blobconatiner.png

[7]: /answers/storage/attachments/12283-sftp-gw-blob.png








1-repro.png (15.3 KiB)
2-sftp-gw-blob.png (56.5 KiB)
3-vm.png (127.6 KiB)
4-blobconatiner.png (133.7 KiB)
sftp-gw-blob.png (56.5 KiB)
5-rsa-key.png (137.8 KiB)
4-blobconatiner.png (133.7 KiB)
· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @HugoBecerra-1778 , Just checking back, could you please let us know if you need further help in this matter.

0 Votes 0 · ·