Log in as root

If you get an error saying that root login is not allow you need to do the following

    sudo -s     
    vi /root/.ssh/authorized_keys
 
    vi /etc/ssh/sshd_config
    sudo /etc/init.d/sshd restart