When you are locked-out of ssh session

just add

PasswordAuthentication yes

to /etc/ssh/sshd_config

to allow password login, mainly when you rebuild droplet.