I recently bought a new laptop and had already factory reset my old one to resell. In doing so, I lost all access to my Hetzner VPS since it was configured to disallow root access entirely and only allow user access via SSH since passwords were turned off. I was able to regain access by following these steps.