Monday, September 7, 2015

Allow ssh root login on Ubuntu 14.04 Linux server

By default the root ssh login to Ubuntu 14.04 Linux server is disable. This is a security feature and even though you change the root password the root ssh login will be denied showing message similar to the one below:

$ ssh root@1.1.1.1
root@1.1.1.1's password:
Permission denied, please try again.
root@1.1.1.1's password:
Permission denied, please try again.
root@1.1.1.1's password:
Permission denied (publickey,password).



In order to allow a root SSH login on Ubuntu 14.04 Linux server/desktop the sshd daemon's config file /etc/ssh/sshd_config needs to be changed.

Open /etc/ssh/sshd_config and make a following changes to the line specified below:

FROM:
PermitRootLogin without-password

TO:
PermitRootLogin yes

Once you have made the change, restart the SSHD service for those changes to take affect
# service ssh restart

Once done you can successfully SSH login to ubuntu server

No comments:

Post a Comment