Generally speaking, it is not a good idea to permit root to log in remotely. If you have SSH (secure shell) installed, edit the file /etc/ssh/sshd_config as root, and locate the following line:
If this line is already indicating No, there is no need to change it. Otherwise, change it to No. If this line is missing altogether, add it (as the default is Yes).
You still need to restart SSH for this change to become effective. As root (using either su or sudo), execute the following command: