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.
Comments
-
kevin over 3 years
Possible Duplicate:
How do I upload a file to an SFTP server in C# / .NET?Does .net support sftp?
I can't find any sample online.