SSH Restart fails with "Directive 'AuthorizedKeysFile' is not allowed within a Match block"

(Doc ID 2169899.1)

Last updated on JUNE 21, 2017

Applies to:

Linux OS - Version Oracle Linux 5.0 to Oracle Linux 6.8 [Release OL5 to OL6U8]
Linux x86-64
Linux x86


sshd restart fails with following error:

# /etc/init.d/sshd restart
Stopping sshd: [ OK ]
Starting sshd: /etc/ssh/sshd_config line 140: Directive 'AuthorizedKeysFile' is not allowed within a Match block


 Added a Match block with the directive AuthorizedKeysFile in /etc/ssh/sshd_config.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms