Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sh0shin/openssh-moduli

Repository files navigation

OpenSSH Moduli

Collection of "safe" moduli(5) for SSH hardening.

Generate

# OpenSSH >= 8.2
for MODULI_BITS in {3072..8192..1024}
do
 ssh-keygen -M generate -O bits="$MODULI_BITS" "moduli-$MODULI_BITS.candidates" && \
 ssh-keygen -M screen -f "moduli-$MODULI_BITS.candidates" "moduli-$MODULI_BITS"
done
# OpenSSH < 8.2
for MODULI_BITS in {3072..8192..1024}
do
 ssh-keygen -G "moduli-$MODULI_BITS.candidates" -b "$MODULI_BITS" && \
 ssh-keygen -T "moduli-$MODULI_BITS" -f "moduli-$MODULI_BITS.candidates"
done

See man ssh-keygen(1) MODULI GENERATION section for details.

About

OpenSSH Moduli

Topics

Resources

License

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /