I provisioned a website on a digitalocean VPS, which default user is “root” instead of “admin”.
I provisioned and deployed with the setting
sshd_permit_root_login set to true.
A few days later, with the site now up and running, I thought it be a good idea to set that setting to false… Forgetting that my admin user is “root”… Oups.
I’m now locked out. I tried ssh-ing using the web user then sudo, but it asks for a password that does not exist…
The only option I have is to reset the root password using digitalocean control panel, but that creates downtime.
Do you see any other option that would not involve downtime (apart from setting up a new VPS!) ?