ubuntu14.10 ssh allows root user to log in remotely

 Change root password

sudo passwd root

2. Log in with another account and modify /etc/ssh/sshd_config via sudo nano:

[email protected]:~$ su - root
[email protected]:~# vi /etc/ssh/sshd_config

3. Comment out #PermitRootLogin without-password and add PermitRootLogin ye

# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password
PermitRootLogin yes
StrictModes yes

4. Restart the ssh service

[email protected]:~# sudo service ssh restart
ssh stop/waiting
ssh start/running, process 1499
[email protected]:~#

Guess you like