This issue occurs when the root user’s login shell defined in the /etc/passwd file is changed to a shell that is not listed in the /etc/shells file.
If the configured login shell is not present in /etc/shells, it is treated as invalid by the system, which results in authentication failure and the “permission denied (publickey)” error when attempting to access the core shell.
This behavior is due to an unsupported configuration
/etc/passwd is a valid shell and that it is listed in the /etc/shells file.
© 2026 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center