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

Commit a5d342a

Browse files
committed
Allow whitelisted groups on ssh
Setting ssh_allow_groups does not work when set since the corresponding if-check tests for the wrong variable
1 parent d8783be commit a5d342a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/ansible-ssh-hardening/templates/opensshd.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ AllowUsers {{ssh_allow_users}}
164164
DenyGroups {{ssh_deny_groups}}
165165
{% endif %}
166166

167-
{% if ssh_deny_groups -%}
167+
{% if ssh_allow_groups -%}
168168
AllowGroups {{ssh_allow_groups}}
169169
{% endif %}
170170

0 commit comments

Comments
 (0)