Config root login for server
-
add ssh public key to /root/.ssh/authorized_keys
-
Refer to the following to set root login:
Delete the lines at the begining of the file until you get to the words ssh-rsa.
Set the variable PermitRootLogin to PermitRootLogin without-password (without quotes)
sudo service sshd restart