Ok. Sorry to bother everyone. I found the issue of my situation. In my EC2 server, under the /root/.ssh/ directory is a file called config.
This file had the following settings:
StrictHostKeyChecking no
CheckHostIP noPasswordAuthentication no
I change the PasswordAuthentication from no to yes.
And that fixed the situation. I hope this helps other people.