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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top