Skip to Main Content

General Cloud Infrastructure

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How Enable Password based Authentication on OCI Compute Instance

Lib TechMay 17 2025

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!

Comments
Post Details
Added on May 17 2025
1 comment
133 views