Failed to user Key authentication for SFTP - WeOnlyDo Discussion board

Failed to user Key authentication for SFTP (wodSFTP / wodSFTP.NET / wodSFTPdll)

by tom, Wednesday, March 27, 2019, 11:08 (1344 days ago) @ Jasmine

Hi Tom,

I just checked, key is loaded ok.

But I think this line

PrivateKey := k.ToXmlString(RSAkey, true);

causes issue. Can you do something like

Sftp1.PrivateKey = k

or k.DefaultInterface() or something like that, I don't remember exact line for Delphi. PrivateKey will not accept XML, but will accept reference to wodKeys or raw data in some cases.


Hi Jasmine,

Issue has been solved by used sftp.PrivateKey := k.DefaultInterface;

Thanks very much!
Have a nice day!


Complete thread: