Have you tried to log into a cloud instance of Ubuntu server recently as root using a ssh key? Hmm.. so you see,
Please login as “ubuntu” user rather than root.
Try this:
sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/
nano /etc/ssh/sshd_config
reboot the server or restart sshd services.