OCI: How to Configure Password Authentication in Oracle Linux 9
Note!! Please register a free account to access the full content and also to participate in Q&A in the community
Applies To:
Oracle Cloud Infrastructure
Oracle Linux 9
Goal:
This document explains steps to configure password authentication in Oracle Linux 9 instances.
Solution:
In Oracle Linux 9, changing PasswordAuthentication
parameter in /etc/ssh/sshd_config
is not sufficient to enable password authentication. The /etc/ssh/sshd_config.d/50-cloud-init.conf
file also needs to be updated to enable password authentication.
1. Edit the configuration files to allow password authentication. Change PasswordAuthentication
from no to yes.
#vim /etc/ssh/sshd_config
PasswordAuthentication yes
2. Edit the following file as well and change