Sometimes you need to login by password. I recommend you keep this to images on private subnets. Here is how you do it.
Edit /etc/ssh/sshd_config, change
PasswordAuthentication no
to
PasswordAuthentication yes
Then restart ssh service:
# systemctl restart sshd
Then change the password of the user you will access by password.
# passwd myusername