How do I upload a file to an SFTP server in C# (.NET)?

Corey picture Corey · Sep 17, 2008 · Viewed 106.2k times · Source

Does a free .NET library exist with which I can upload a file to a SFTP (SSH FTP) server, which throws exceptions on problems with the upload and allows the monitoring of its progress?

Answer

Kasprzol picture Kasprzol · Sep 17, 2008

Maybe you can script/control winscp?

Update: winscp now has a .NET library available as a nuget package that supports SFTP, SCP, and FTPS