Uploading a file using SFTP in C#

SSH.NET is a new library, inspired by the discontinued SshSharp, that can be used to upload files using the sftp protocol.

The documentation is very limited, just some API listing, so here is a sample for file upload with SFTP and .NET/C#.