You must set up password authentication to an SSH server as follows:
- Log on to a remote process target host as root.
- Open the /etc/ssh/sshd_config file.
- Set the value of PasswordAuthentication to "yes". If the PasswordAuthentication line is commented out, remove the comment out hash sign (#).
- Run the following command and restart sshd service.
systemctl restart sshd
Note: These commands can change with different versions of the OS. See the OS documentation for additional information.