I have a little problem about upload speed with Rebex sftp.
Here's my problem :
When uploading a file, the maximum speed I can get is ~4 MB/s
With the exact same configuration with winscp, I'm uploading at ~13 MB/s.
Here's my code :
dtStart = DateTime.Now;
Sftp client = new Sftp();
//client.FingerprintCheck += new SshFingerprintEventHandler(client_FingerprintCheck);
SshPrivateKey pk = new SshPrivateKey(sshRsaPath, pwd);
string tabproxy = proxy.Split(':');
client.Proxy = new Proxy(ProxyType.HttpConnect, tabproxy, int.Parse(tabproxy));
client.Options |= SftpOptions.UseLargeBuffers;
client.Login(login, pwd, pk);
FileInfo fi = new FileInfo(filePath);
//client.TransferProgressChanged += new EventHandler<SftpTransferProgressChangedEventArgs>(client_TransferProgressChanged);
client.PutFile(filePath, dirPath + fi.Name);
I tried to enable or disable large buffers and using PutFile or Upload method but I don't know what else I could de.
I was trying Rebex in the hope it'll be faster than WinScp (my connection allows me to upload at a maximum of 30 MB/s)