How to Enable SSH Password Login on CentOS Stream 9

To enable SSH password login on CentOS Stream 9, follow these steps.

Step 1 : If the root account is not enabled, enable it using the following command:

Set a password for the root account as prompted.

Step 2 : Open the SSH daemon configuration file, sshd_config, using a text editor. For example, using Nano:

Step 3 : Modify PasswordAuthentication

Locate the line that starts with "PasswordAuthentication" in the sshd_config file. If it is commented out (preceded by '#'), remove the '#' symbol. Change the value to 'yes':

Save the changes and exit the text editor.

Step 4 : Restart the SSH service to apply the changes:

Step 5 : Now, test the SSH connection with password authentication:

Congratulations! You have successfully enabled SSH password login on CentOS Stream 9.