Labels

Monday, June 23, 2014

How to Allow root to use SSH on Ubuntu 14.04

Ubuntu is Debian-based distributions that don’t allow logins by the root user by default, either locally or remotely via SSH. Now i discussed how to enable root login on Ubuntu 14.04

1. Login using normal user and su to root. Edit /etc/ssh/sshd_config :
user@Ubuntu14.04:~# su -root
Password:
root@Ubuntu14.04:~# vim /etc/ssh/sshd_config


2. Comment out #PermitRootLogin without-password, add PermitRootLogin yes into the line[28] :

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

3. Restart ssh service to take affect :
root@Ubuntu14.04:~# service ssh restart
ssh stop/waiting
ssh start/running, process 1499
root@Ubuntu14.04:~#


4. That’s all.

No comments: