Skip to content

Instantly share code, notes, and snippets.

@ulif
Created February 15, 2016 08:58
Show Gist options
  • Save ulif/465577e344464ab0df6d to your computer and use it in GitHub Desktop.
Save ulif/465577e344464ab0df6d to your computer and use it in GitHub Desktop.
Strip short moduli from /etc/ssh/moduli
#!/bin/bash
#
# Strip weak (short) moduli from /etc/ssh/moduli
#
awk '$5 >= 2047' /etc/ssh/moduli > /etc/ssh/moduli.stripped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment