Hi,
I ran into a curious problem with Solaris 11.4.42. The included sshd to be precise. I can't get it to accept root logins.
I edited the sshd_config and set PermitRootLogin to yes. Then I edited /etc/default/login and commented out the CONSOLE line. On my local installation that works as expected.
And now to the curious part:
I also installed the exact same Solaris (same iso) on a remote server and made the same changes but there it does not work! Instead I get the following error:
sshd[1560]: [ID 800047 auth.crit] fatal: Access denied for user root by PAM account configuration [preauth]
I added "UsePAM no" to sshd_config and restarted the service but it still didn't work. Even a reboot didn't change anything.
So how can it work just fine on my local machine but not on the remote server? Does PAM only kick in if it detects a non-lan ip or something?
Either way this is nasty and any help would be appreciated.