Skip to content

Instantly share code, notes, and snippets.

@rickytato
Last active December 1, 2015 13:34
Show Gist options
  • Save rickytato/08ab159ae02f5cd216f0 to your computer and use it in GitHub Desktop.
Save rickytato/08ab159ae02f5cd216f0 to your computer and use it in GitHub Desktop.
SSH ciphers speed
CIPHERS=`ssh -Q cipher`
for c in $CIPHERS; do
dd if=/dev/zero bs=1000000 count=1000 2> /dev/null | ssh -c $c localhost "(time -p cat) > /dev/null" 2>&1 | grep real | awk '{print "'$c': "1000 / $2" MB/s" }'
done
# My results:
# aes128-ctr: 108.108 MB/s
# aes192-ctr: 108.932 MB/s
# aes256-ctr: 114.416 MB/s
# [email protected]: 116.55 MB/s
# [email protected]: 115.607 MB/s
# [email protected]: 117.371 MB/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment