Why do I get "Directive AllowGroups is not allowed within a Match block" errors in RHEL6.4?

Solution Verified - Updated -

Issue

  • When following lines are inserted into the sshd_conf:
Match Address 195.160.4.0/27
        AllowGroups test
  • I receive following errors:
 Starting sshd: /etc/ssh/sshd_config line 156: Directive 'AllowGroups' is not allowed within a Match block.
  • Why such errors appears?

Environment

  • Red Hat Enterprise Linux (RHEL) 6.4.
  • sshd configuration.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content