Last active
February 14, 2018 12:38
-
-
Save kiorky/9ec8b42a3ebd719aa43f00bbd20e129d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for cipher in $(ssh -Q cipher) ; do | |
for i in 1 2 3 ; do | |
echo | |
echo "Cipher: $cipher (try $i)" | |
if dd if=/dev/zero bs=1M count=128 2>/tmp/dd.txt \ | |
| pv \ | |
| time -p ssh -c "$cipher" -F .vagrant/cops-sshconfig-corpusops* vagrant 'cat > /dev/null';then | |
grep -v records /tmp/dd.txt | |
break | |
fi | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment