I am not able to connect to an EC2 instance through SSH using password authentication.
I have created a user called demo117 using the command "useradd demo117" on ubuntu 22.04. I also created a password for the user using the command "passwd demo117". I edited the file "/etc/ssh/sshd-config" and enabled password authentication. I then restarted the ssh service using the command "systemctl restart sshd.service". I tried to connect to the EC2 instance through SSH using password authentication using the command "ssh demo117@ip-address". But it is not working. It is throwing the error "Permission denied (publickey)".