Skip to content

Instantly share code, notes, and snippets.

@ABalanuta
Last active March 1, 2018 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ABalanuta/a22c4b6b2bd63e1affbee97857e50bcd to your computer and use it in GitHub Desktop.
Save ABalanuta/a22c4b6b2bd63e1affbee97857e50bcd to your computer and use it in GitHub Desktop.
for i in `ssh -Q cipher`; do dd if=/dev/zero bs=1M count=300 2> /dev/null | ssh -c $i $USER@localhost "(time -p cat) > /dev/null" 2>&1 | grep real | awk '{print "'$i': "300 / $2" MB/s" }'; done
# /etc/ssh/ssh_config (or ~/.ssh/config) and sshd_config
Ciphers chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com
#https://turecki.net/content/getting-most-out-ssh-hardware-acceleration-tuning-aes-ni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment