Server.yml and SSH error

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:

  1. DigitalOcean web GUI > Access > Console Access
  2. Login with root
  3. vim /etc/ssh/sshd_config
  4. PermitRootLogin yes
  5. PasswordAuthentication yes
  6. save and exit vim editor (:w (save) , :q (quit))
  7. service ssh restart
2 Likes