You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI-How to Enable Specific Users to Use Password Based ssh Login.

edited Sep 20, 2022 1:44PM in Linux 6 comments

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]

Linux x86-64


Goal

By default OCI Linux Instances use Private/public key combination for User Authentications through ssh. There can be situations like some specific users need to use password based authentication.

 

Solution

Current /etc/ssh/sshd_config will have the below settings, which define the user login.
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no              ««««««««««« This settings will not allow password based login
ChallengeResponseAuthentication no
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
UsePAM yes

To Enable Specific users to use password, add the below lines to the end of /etc/ssh/sshd_config, Example user test

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!