Question

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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top