I created a couple of Oracle Linux 9 instances, and there wasn't an option to create a user during the installation, so I added an SSH public key. I am able to SSH to servers using the SSH key, and I have configured LDAP/AD for user login. However, users are unable to log in using a password. Get the below error whenever a user tries to SSH to the server. I enabled PasswordAuthentication with a yes value and uncommented UsedPAM, and the value is yes from/etc/ssh/sshd_config, and restarted the service, but still can't log in. The only way a user can log in is to copy their SSH key to the .ssh directory, which is not convenient. What other configuration is needed to be able to SSH to the VM using a password? Do I need to create a policy or something?
username@10.123.0.5: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
I appreciate your help!