

Connects to the SFTP Server and uploads the file Methods.Add(new PasswordAuthenticationMethod(sftpUsername, sftpPassword)) If (CloudStorageAccount.TryParse(storageConnectionString, out storageAccount))ĬloudBlobClient cloudBlobClient = storageAccount.CreateCloudBlobClient() ĬloudBlobClient.GetContainerReference(storageAccountContainer) ĬloudBlockBlob cloudBlockBlobToTransfer =ĬloudBlobContainer.GetBlockBlobReference(new CloudBlockBlob(uri).Name) Īwait cloudBlockBlobToTransfer.DownloadToStreamAsync(memoryStream) SFTP Parameters (read it from configurations or Azure KeyVault) String sourceFileAbsolutePath = uri.ToString() String storageConnectionString = BLOBStorageConnectionString String storageAccountContainer = "csvfiles4magento" Private static async Task UploadFileToSFTP(Uri uri, string sourceFileName, ILogger log ) My user/password/ip/port are correct (I have checked it with Filezilla) Do you know what could be happening? "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." I get a error when this line is executed: client.Connect() I am trying to upload a file into SFTP using Renci.SshNet within an Azure Function (find at the bottom). Here are the details of the error I get with the code in that post: I have also purchased your book with Stefano Demiliani but I cant make it work.

I have copy+paste the code in that post and I get an error when connecting to FTP. Thank you Dulio, is there any github or repo where I can pick up the code.
