Oracle Linux : Login Rejected With Error: "sshd: User root from xxx.xxx.xx.xx not allowed because not listed in AllowUsers"
(Doc ID 2307809.1)
Last updated on MAY 13, 2020
Applies to:Linux OS - Version Oracle Linux 5.0 to Oracle Linux 6.9 [Release OL5 to OL6U9]
Oracle Cloud Infrastructure - Version N/A and later
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:
# ssh email@example.com.XXX.12 The authenticity of host '198.162.XXX.12 (198.162.XXX.12)' can't be established. RSA key fingerprint is eb:ec:57:24:2e:fa:00:75:e6:ca:65:73:19:b1:XX:XX. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '198.162.XXX.12' (RSA) to the list of known hosts. firstname.lastname@example.org.XXX.12's password: Permission denied, please try again. email@example.com.XXX.12's password: Permission denied, please try again. firstname.lastname@example.org.XXX.12's password:
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.|