Connecting to Microsoft Azure blob - WeOnlyDo Discussion board

Connecting to Microsoft Azure blob (wodFtpDLX / wodFtpDLX.NET)

by dfb, Wednesday, August 10, 2022, 07:14 (846 days ago) @ wodSupport

Thanks Jasmine. Some test VB code below. As shown using key file, it fails at the connect. It works if modified to authenticate with a password.

[code]
Try
Using ftps As New WeOnlyDo.Client.FtpDLX
ftps.Hostname = hostname
ftps.ListParams = ""
ftps.LicenseKey = licenceKey
ftps.TransferMode = TransferModes.Binary
ftps.Blocking = True
ftps.Passive = False

ftps.Protocol = Protocols.SFTP

ftps.Authentication = Authentications.Certificate
ftps.PrivateKey = IO.File.ReadAllText(privateKeyFile)

ftps.Login = login
ftps.Connect()

ftps.ListDir("\")
For Each ftpDirItem As DirItem In ftps.DirItems
Console.WriteLine(ftpDirItem.FullLine)
Next

ftps.Disconnect()
End Using
Catch ex As Exception
Console.WriteLine(ex.ToString)
End Try
[code]

Hi.

I don't think so. Is it something we could duplicate by ourselves? Can you share your code as separate sample?

Jasmine


Complete thread: