{"id":489,"date":"2014-03-27T09:53:43","date_gmt":"2014-03-27T13:53:43","guid":{"rendered":"http:\/\/devolve.net\/blog\/?p=489"},"modified":"2014-10-23T13:40:03","modified_gmt":"2014-10-23T17:40:03","slug":"raspberry-pi-ssh-cipher-speed","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/raspberry-pi-ssh-cipher-speed\/","title":{"rendered":"Raspberry Pi SSH cipher speed"},"content":{"rendered":"
I was curious to see how quickly I could transfer files to my Pi using SSH rather than FTP. Obviously using FTP is way faster than almost any other method, but still I wanted to see how fast I could transfer data over SSH.<\/p>\n
Here’s the time it took to transfer a 50 MB file to my Pi using different SSH ciphers.<\/p>\n
aes128-ctr 0m13.496s\r\n3des-cbc 0m26.740s\r\narcfour128 0m10.221s\r\narcfour256 0m10.681s\r\narcfour 0m10.136s\r\nblowfish-cbc 0m12.627s\r\ncast128-cbc 0m12.862s\r\naes128-cbc 0m12.497s<\/pre>\nI later re-tested the
aes128-ctr<\/code> cipher and it took about a second less than what I’d recorded initially. This boils down to:<\/p>\n
\n
- Don’t use triple-DES ever, for both performance and security reasons<\/li>\n
- Most other ciphers give about the same performance, and are generally considered secure<\/li>\n
arcfour<\/code> is the fastest class of ciphers, but there is less trust in it from the crypto community. If you’re going to use it, try to avoid the base
arcfour<\/code> cipher and instead use the 128 or 256 version, which tosses out some of the initial bits as a precaution<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"
I was curious to see how quickly I could transfer files to my Pi using SSH rather than FTP. Obviously using FTP is way faster than almost any other method, but still I wanted to see how fast I could transfer data over SSH. Here’s the time it took to transfer a 50 MB file […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[34,16,17,25,22,24],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/489"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=489"}],"version-history":[{"count":1,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":490,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/489\/revisions\/490"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}