paramiko/paramiko — Issue #60: Big speed problem using paramiko.SFTPClient
Author: damiendube
Created: 2012-01-31 18:36:08+00:00
State: open

I am using paramiko to send big files between two RHEL5.5 servers and I am seeing a BIG speed gap between paramilo and scp (or sftp).

Here is the code I run in python

t = paramiko.Transport((hostname, 22))
t.connect(username=username, password=password, hostkey=hostkey)
sftp = paramiko.SFTPClient.from_transport(t)
sftp.put(in_file, out_file)

With this code I get about 6MB/s on a gigabyte connexion.

I also tried using compression

t.use_compression()

I was able to get to 11MB/s

On the same system, scp will reach at least 50MB/s !

Is there something I could tweak to get better speed results?