Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello,
Have you checked the PermitRootLogin value in your /etc/ssh/sshd_config config file?
You need to make sure that it is set to yes and restart sshd after that:
sudo systemctl restart sshd
But note that it is better to have your root access disabled and access your server with a non-root user and then su as root. For more information you could take a look at this guide here on some good practices for initial server setup:
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04
Regards, Bobby
In the meantime I’ve diagnosed and have found the following, even bigger problem, to be the reason of above:
Whenever I reboot my droplet, the keys in the ‘authorized_keys’ file under /root/.ssh get deleted and a strange, UNKNOWN key, which I never inserted by any method, nor have I seen even in DO control panel, shows there already present. What is peculiar is that in the end of the key, where comment is written, “motherfucker” is written in these letters: “mdrfckr”
I’ve tried deleting all keys from this file and from my DO control panel and then inserting fresh keys thru DO control panel (thinking that perhaps DO control panel takes precedence and resets the contents of this authorized_keys file at every reboot). Due to this, every time my droplet reboots, I’ve to delete this key and insert 2 keys from myself, one ppk key for ftp, and another openssh key for bash terminal. After inserting them, I’m able to work/login normally.
Pls help fast. Lest there might be some intrusion into my droplet.