문제

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