Frage

I need a C# library that allows to send files to a SFTP server and that it accepts private keys in PuTTY format (PPK).

Does anyone know of such a library?

War es hilfreich?

Lösung

You can try WinSCP .NET assembly (C# wrapper around WinSCP scripting interface):

Its SessionOptions.SshPrivateKeyPath accepts a path to .ppk file.

(I'm the author of WinSCP)


Or you can use PuTTYgen to convert the .ppk private key file to a format supported by your preferred SSH/SFTP library.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top