How to use sftp in C#

88,760

Solution 1

We have used SharpSSH for sftp, it works well and is open source.

Code example:

sftp = new Tamir.SharpSsh.Sftp(ipAddress, username, password);
sftp.Connect();
sftp.Get(sourcePath, destinationPath);
sftp.Close();

Solution 2

We use successfully the Rebex components (FTP, S-FTP, FTP-S) for that in our projects. They are commercially, though.

Share:
88,760
kevin
Author by

kevin

I am trying to be an expert :D

Updated on August 03, 2020

Comments