Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit a3ccd8f

Browse files
authored
Merge pull request #85 from dev-sec/ChallengeResponseAuthentication
make ChallengeResponseAuthentication configurable
2 parents 44a7bbb + 076aa41 commit a3ccd8f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Warning: This role disables root-login on the target server! Please make sure yo
4545
|`sftp_chroot_dir` | /home/%u | change default sftp chroot location|
4646
|`ssh_client_roaming` | false | enable experimental client roaming|
4747
|`sshd_moduli_minimum` | 2048 | remove Diffie-Hellman parameters smaller than the defined size to mitigate logjam|
48+
|`ssh_challengeresponseauthentication` | false | Specifies whether challenge-response authentication is allowed (e.g. via PAM) |
4849

4950
## Example Playbook
5051

defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,6 @@ ssh_kex_66_weak: "{{ ssh_kex_66_default + ['diffie-hellman-group14-sha1', 'diffi
142142
ssh_custom_selinux_dir: '/etc/selinux/local-policies'
143143

144144
sshd_moduli_minimum: 2048
145+
146+
# disable ChallengeResponseAuthentication
147+
ssh_challengeresponseauthentication: false

templates/opensshd.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ UsePAM {{ 'yes' if ssh_use_pam else 'no' }}
133133
# Disable password-based authentication, it can allow for potentially easier brute-force attacks.
134134
PasswordAuthentication no
135135
PermitEmptyPasswords no
136-
ChallengeResponseAuthentication no
136+
ChallengeResponseAuthentication {{ 'yes' if ssh_challengeresponseauthentication else 'no' }}
137137

138138
# Only enable Kerberos authentication if it is configured.
139139
KerberosAuthentication no

0 commit comments

Comments
 (0)