Skip to content

Instantly share code, notes, and snippets.

Created August 14, 2015 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/01aee61829a30b2974c4 to your computer and use it in GitHub Desktop.
Save anonymous/01aee61829a30b2974c4 to your computer and use it in GitHub Desktop.
#6.2.8 Disable SSH Root Login (Scored)
6.2.8:
cmd.run:
- name: "sed -i 's/PermitRootLogin\ yes/\PermitRootLogin\ no/g' /etc/ssh/sshd_config"
- unless:
- "grep '^PermitRootLogin no' /etc/ssh/sshd_config"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment