Bought an OVH and got given user ubuntu etc? Here's how to fix that issue.
- Type
sudo nano /etc/ssh/sshd_config - Scroll Down until you see
#PermitRootLogin prohibit-passwordchange that toPermitRootLogin yesthen Save. - Type
sudo passwd your_password- Enter New Password, then again. - Once that is done do
service sshd restart - Then login using user
rootand passwordyour_password
Hope it works for you.