Authentication into SFTP server using PrivateKey (wodFtpDLX / wodFtpDLX.NET)
Hi jxt.
You need to use different component (wodKeyManager, provided with wodFtpDLX.NET) to load your key from that format. Once loaded in wodKeyManager, you convert it to XML format, and then you can proceed without wodKeyManager in the future. Code would look like this:
dlx1 = New WeOnlyDo.Client.FtpDLX
key = New WeOnlyDo.Security.Cryptography.KeyManager
'do this only once, then you have format suitable for wodFtpDLX.NET
'key.Load("c:\RSAprivate.txt")
'TextBox1.Text = (key.ToXmlString(WeOnlyDo.Security.Cryptography.SSHKeyTypes.RSAKey, True))
dlx1.Protocol = WeOnlyDo.Client.Protocols.SFTP
dlx1.Hostname = "your_ip"
dlx1.Authentication = WeOnlyDo.Client.Authentications.PublicKey
dlx1.Login = "your_login"
dlx1.PrivateKey = "<RSAKeyValue><Modulus>...............</RSAKeyValue>"
dlx1.Blocking = True
dlx1.Connect()
Can you try that?
Warm regards,
Jasmine
Complete thread:
- Authentication into SFTP server using PrivateKey - jxt, 2015-04-01, 22:02
- Authentication into SFTP server using PrivateKey - Jasmine, 2015-04-01, 22:13
- Authentication into SFTP server using PrivateKey - jxt, 2015-04-02, 19:05
- Authentication into SFTP server using PrivateKey - Jasmine, 2015-04-01, 22:13