{"id":6339,"date":"2016-10-12T15:57:44","date_gmt":"2016-10-12T07:57:44","guid":{"rendered":"http:\/\/rmohan.com\/?p=6339"},"modified":"2016-10-12T15:57:44","modified_gmt":"2016-10-12T07:57:44","slug":"speed-up-scp-file-transfer","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6339","title":{"rendered":"Speed up scp file transfer"},"content":{"rendered":"<h3 class=\"post-title entry-title\">Speed up scp file transfer<\/h3>\n<div class=\"post-header\"><\/div>\n<div id=\"post-body-2734548796119541275\" class=\"post-body entry-content\">\n<div><i><b>Speed up scp file transfer<\/b><\/i><\/div>\n<div><i><b>20\/05\/2008<\/b><\/i><\/div>\n<div><i><b>Syed Atif Ali Whats the fastest encryption to transfer files with SCP ?<\/b><\/i><\/div>\n<p><b>Description :<\/b><br \/>\nMany 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 ntensive 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 scp command.<\/p>\n<p><b>Objective :<\/b><br \/>\nTo find out what is the faster cypher to define in scp command to transfer files on an internallocal network.<\/p>\n<p><b>Environment :<\/b><br \/>\nTwo 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.<br \/>\nTests :<br \/>\nCopy 1000 small, medium , large files across the network using different cyphers in scp command and measure their real time.<\/p>\n<p>These are the file sizes :<br \/>\nSmall : 10K<br \/>\nMedium: 100K<br \/>\nLarge:1000K<br \/>\n<b><\/b><\/p>\n<p>Overall arcfour performed better than any other cypher used. It is safe to say that arcfour<br \/>\ncan beused to transfer files using scp on an internal network.<\/p>\n<p>You can define which cypher to use by -c option of scp.<\/p><\/div>\n<div class=\"post-body entry-content\"><\/div>\n<div class=\"post-body entry-content\"><\/div>\n<div class=\"post-body entry-content\">scp -c arcfour filename.txt host:\/path\/filename<\/p>\n<p>\/etc\/ssh\/ssh_config<br \/>\nCiphers arcfour128,arcfour256,arcfour,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Speed up scp file transfer Speed up scp file transfer 20\/05\/2008 Syed Atif Ali Whats the fastest encryption to transfer files with SCP ? <\/p>\n<p>Description : 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 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6339"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6339"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6339\/revisions"}],"predecessor-version":[{"id":6340,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6339\/revisions\/6340"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}