Skip to content

Instantly share code, notes, and snippets.

@mroach
Created December 19, 2014 03:45
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 mroach/a86279af0b027266aa7e to your computer and use it in GitHub Desktop.
Save mroach/a86279af0b027266aa7e to your computer and use it in GitHub Desktop.
- name: Disable Challenge-Response authentication
lineinfile:
dest=/etc/ssh/sshd_config
regexp="^ChallengeResponseAuthentication"
line="ChallengeResponseAuthentication no"
state=present
notify: restart ssh
# OR
- name: Disable Challenge-Response authentication
lineinfile: >
dest=/etc/ssh/sshd_config
regexp="^ChallengeResponseAuthentication"
line="ChallengeResponseAuthentication no"
state=present
notify: restart ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment