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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.