Resolving ssh permission denied issue on digitalocean

I recently rebuilt my droplet on digital ocean using a new kernel (after taking a backup, of course), and I wasn’t able to login from my local machine using ssh. Since it was a...