I made a droplet with ssh keys selected, logged in as root perfectly fine, did "adduser demo" and "gpasswd -a demo sudo". When i try to ssh in as email@example.com i get a "Permission denied (publickey)." but when i tr...
You need to edit the file /etc/ssh/sshd_config and edit/add this line:
And restart sshd with the command sudo service ssh restart