2014/03/27
Raspberry Pi SSH cipher speed
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 to my Pi using different SSH ciphers.
1
2
3
4
5
6
7
8
|
aes128-ctr 0m13.496s
3des-cbc 0m26.740s
arcfour128 0m10.221s
arcfour256 0m10.681s
arcfour 0m10.136s
blowfish-cbc 0m12.627s
cast128-cbc 0m12.862s
aes128-cbc 0m12.497s
|
I later re-tested the aes128-ctr
cipher and it took about a second less than what I’d recorded initially. This boils down to:
- Don’t use triple-DES ever, for both performance and security reasons
- Most other ciphers give about the same performance, and are generally considered secure
-
arcfour
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 basearcfour
cipher and instead use the 128 or 256 version, which tosses out some of the initial bits as a precaution
Raspberry Pi SSH cipher speed is original content from devolve.