Leaving root access enabled by default opens you up to additional security issues and it’s much more recommended to instead disable root access and use sudo within another SSH account to authenticate root level commands.
Step 1. Log in to your server via a terminal client.
sudo nano /etc/ssh/sshd_config/
Step 3. Scroll down or search to find "#PermitRootLogin no"
Step 4. Remove the "#" and then exit and save the file.
sudo service sshd restart