I have managed to fix the issue, had to set PasswordAuthentication
to yes
inside sshd_config. Thanks a million for helping me get to the solution.
I’m unsure how or when this has changed. Perhaps when I wanted to lock down root access.
For future reference:
The error is Permission denied (publickey)
when connecting via SSH, also unable to run Server.yml
How to fix:
- DigitalOcean web GUI > Access > Console Access
- Login with root
- vim /etc/ssh/sshd_config
- PermitRootLogin yes
- PasswordAuthentication yes
- save and exit vim editor (:w (save) , :q (quit))
- service ssh restart