SSH ciphers speed comparison
Aller à la navigation
Aller à la recherche
script
# uses "/root/tmp/dd.txt" as a temporary file! ciphers="aes128-ctr aes192-ctr aes256-ctr aes128-gcm@openssh.com aes256-gcm@openssh.com chacha20-poly1305@openssh.com" for cipher in $ciphers ; do for i in 1 2 3 ; do echo echo "Cipher: $cipher (try $i)" dd if=/dev/zero bs=4M count=1024 2>/root/tmp/dd.txt | pv --size 4G | time -p ssh -c "$cipher" root@localhost 'cat > /dev/null' grep -v records /root/tmp/dd.txt done done
init :
ssh-keygen cat .ssh/id_rsa.pub > .ssh/authorized_keys
Host
- OpenSSH_6.7p1 Debian-5, OpenSSL 1.0.1k 8 Jan 2015
- pve-manager/4.1-2/78c5f4a2 (running kernel: 4.2.6-1-pve)
- OpenSSL 1.0.1k 8 Jan 2015