Secure file transfer protocol (SFTP) is one of the approaches to uploading to the server remotely over a secure and encrypted connection. In .NET, we can easily develop a utility to perform the mentioned task.
For this, all we need to do is to use an assembly called SSH.NET. SSH.NET is a Secure Shell (SSH) library for.NET, optimized for parallelism and with broad framework support.
https://www.codeproject.com/Tips/1189835/SFTP-File-Upload-with-Csharp-Application
origin - http://www.pipiscrew.com/2017/05/sftp-file-upload/ sftp-file-upload