Skip to content

Instantly share code, notes, and snippets.

@kiorky
Last active February 14, 2018 12:38
Show Gist options
  • Save kiorky/9ec8b42a3ebd719aa43f00bbd20e129d to your computer and use it in GitHub Desktop.
Save kiorky/9ec8b42a3ebd719aa43f00bbd20e129d to your computer and use it in GitHub Desktop.
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