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.
Select Open Connection Select SFTP (SSH File Transfer Protocol) for the connection type. Enter server, port (22), username. You can skip password - it will use the SSH key. For SSH Private Key, select Choose... and find the save location of your file.
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();
We use successfully the Rebex components (FTP, S-FTP, FTP-S) for that in our projects. They are commercially, though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With