Search code examples
c#.netsftpputtyprivate-key

SFTP C# library with PuTTY private key (PPK) support


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?


Solution

  • 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.