Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Slow Performance .... help!!

$
0
0
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.
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();
}

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>