I have a very simple proof of concept app that is using the SSH.NET library, but it is very slow when trying to download a file. I am connecting via sftp and only getting about 100KB instead of 1,000KB. If I use winSCP or any desktop app, I can download at 1,000KB.
Here is my code, any help would appreciated.
Here is my code, any help would appreciated.
var connectionInfo = new PasswordConnectionInfo("host", "username", "password");
var encoding = new ASCIIEncoding();
using (var client = new SshClient(connectionInfo))
{
client.Connect();
client.DownloadFile("/largefile.txt", new FileStream(@"C:\largefile.txt", FileMode.Create, FileAccess.Write), null);
client.Disconnect();
}