Speed up scp file transfer 20/05/2008Syed Atif Ali Whats the fastest encryption to transfer files with SCP ?
Many times it is required to transfer files across machines on the same network , all machinesbeing on the same network and behind proxy its useless to transfer them with an encryptionwhich is more CPU intensive than other and also slower than others.There can be other methods to transfer files of course , ftp , sftp , rsync, but this document is justabout
To find out what is the faster cypher to define in
command to transfer files on an internallocal network.
Two Linux machines, with same openssh versions.Connected on a 100 Mbps LAN . Both being idle nothing is running on them at the moment .Before each test files will be cached on the file system buffer , so the tests are not affected withcache.
Copy 1000 small, medium , large files across the network using different cyphers in
command and measure their real time.These are the file sizes :Small : 10KMedium: 100KLarge:1000K
Times are in seconds and they reflect time taken to transfer 1000 fies.sizeaes128-cbc3des-cbcblowfish-cbccast128-cbcarcfouraes192-cbcaes256-cbc10K8.7589.0418.7258.7408.0518.7608.934100K47.54044.17246.17448.27946.10346.45847.1161000K1311.878340.359118.553120.532116.352127.579124.799Overall
performed better than any other cypher used. It is safe to say that
can beused to transfer files using
on an internal network.You can define which cypher to use by -c option of
scp -c arcfour filename.txt host:/path/filename