My Oracle Support Banner

Oracle Linux : Login Rejected With Error: "sshd: User root from not allowed because not listed in AllowUsers" (Doc ID 2307809.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 5.0 to Oracle Linux 6.9 [Release OL5 to OL6U9]
Information in this document applies to any platform.


On Oracle Linux O/S, some users are unable to access the server via ssh(1) or the Putty application.  Even the root user is denied.  The local error is  "Permission denied, please try again" after a valid password is entered:



 The file /etc/ssh/sshd_config was edited to change the sshd(8) configuration.  The intent was to allow only some users to be allowed to use an ssh(1) login.


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
 Revert the sshd_config changes.
 Add the root user to the AllowUsers directive.

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