My Oracle Support Banner

Oracle Linux: Restarting sshd Service Fails with "Directive 'AuthorizedKeysFile' is not allowed within a Match block" (Doc ID 2169899.1)

Last updated on MARCH 31, 2023

Applies to:

Linux OS - Version Oracle Linux 5.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86

Symptoms

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
[FAILED]

Changes

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

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.