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
Then restart ssh service:
# systemctl restart sshd
Then change the password of the user you will access by password.
# passwd myusername