The following should be the same for all Ubuntu versions both x86 & x64. Currently tested on Ubuntu 14.04 LTS Server x64
By default, root login is not allowed over an SSH connection.
Obviously this is an issue for some (including myself).
To overcome this and to permit root login you must do the following.
The first step is a no brainer… Make sure you have a root password set.
sudo -i // Enter user password passwd // Set root password
Make sure your password is memorable and secure
After a root password has been set the SSH config file needs to be modifed. (Heads up i am referencing this).
Open up the config file as follows (make sure you are still logged in as root) or you will error when trying to write the modifications.
Authentication section as follows. Mainly edit the line
PermitRootLogin without-password so that it ends up as
# Authentication: LoginGraceTime 120 PermitRootLogin yes StrictModes yes
Save the file and then a restart / reload of SSH is required.
service ssh restart // OR service ssh reload
Should be all sorted…!