Enable Password Login for SSH on Amazon Linux AMI
Solution 1:
You need to change the config file for the ssh server and restart the server.
alter /etc/ssh/sshd_config:
PasswordAuthentication yes
then restart the ssh server:
/etc/init.d/sshd restart
Solution 2:
Enable password authentication and delete delete authorized_keys:
# rm /home/ec2-user/.ssh/authorized_keys