I’m facing an issue where I can no longer access my DigitalOcean droplet console after reinstalling the SSH server and manually creating the sshd.service file due to it being missing. The console gets stuck on “Opening console -> registering SSH keys -> SSH connection lost.” I’ve tried resetting the root password through the recovery console, but I still can’t log in to the console. The SSH server itself seems to be running fine, and I can SSH into the droplet through the terminal. All my production data are on this droplet, and I don’t have a backup.
-
Reinstalled OpenSSH Server: I reinstalled the openssh-server package to fix issues with the SSH service. I expected this to resolve the connection problems but it led to losing console access.
-
Manually Created sshd.service File: The sshd.service file was missing, so I created it manually to enable systemd to manage the SSH server. This fixed the SSH service itself, but not the console access issue.
-
Reset Root Password: I tried resetting the root password through the recovery console, expecting to be able to log in with the new password, but the console still fails to connect.
Priyanshu Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.