Skip to content

Instantly share code, notes, and snippets.

@Jas0n99
Jas0n99 / generate-moduli.sh
Last active January 26, 2020 16:50 — forked from ulif/generate-moduli.sh
Generate primes for use with SSH
#!/bin/bash
#
# Create primes for use with ssh.
#
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
for bitlen in 2048 3072 4096 6144 8192 ;