Closed JosephHoffman closed 1 year ago
(?i)^#?.?IgnoreRhosts
Would match:
IgnoreRhosts
#IgnoreRhosts
# IgnoreRhosts
Might want to lock it in more though so it wouldn't match something like IgnoreRhosts22 or IIgnoreRhosts:
(?i)^#?\ ?w*IgnoreRhosts\b
hi @bordenit
Thank you again for raising this issue. This has now been merged into the devel branch. Aiming to put this into main if all is well in the next couple of weeks.
many thanks again
uk-bolly
Describe the Issue RHEL-07-040350 is not properly applying on RHEL7 Workstations by not uncommenting the
#IgnoreRhosts yes
in/etc/ssh/sshd_config
Expected Behavior Post running this playbook the line
#IgnoreRhosts yes
should change toIgnoreRhosts yes
Actual Behavior Regex does not seem to be finding the syntax for
#IgnoreRhosts yes
Control(s) Affected RHEL-07-040350
Environment (please complete the following information):
Additional Notes This is configured in
fix-cat2.yml
line 3420Possible Solution The regex seems to be invalid and needs modification on line 3420 of
cat-fix2.yml
Currently:
"(?i)^#?IgnoreRhosts"
Change to:"^#IgnoreRhosts"
This regex seems to function properly.