- Open the file /etc/ssh/sshd_config and change the line PasswordAuthentication no to PasswordAuthentication yes. Save and close the file.
- For the change to take effect restart the ssh service
- Centos - systemctl restart sshd
- Ubuntu – service ssh restart