March 14, 2015 asvignesh 0Comment

First login to the ubuntu server via terminal or console

To gain super user access, enter the following command and re-type the user password.

sudo su –

rootlogin

Type the following command to set the password for the Root user

passwd root

set password for root

This will prompt user to enter the new password.
and confirm password

The terminal will return with Password updated successfully!

Simply adding a password for root is not enough for Ubuntu 14.04+ Server.

You need to edit /etc/ssh/sshd_config, and commend out the below line:

PermitRootLogin without-password

Add the following line:

PermitRootLogin yes

permit root login

Then restart SSH:

service ssh restart

restart ssh

Yes you are done…

login using root account

Software developer experience in building storage management and Data protection software for the Private and public cloud.

Disclaimer :

This is a personal weblog. The opinions expressed here represent my own and not those of my employer. my thoughts and opinions change from time to timeā€¦ This weblog is intended to provide a semi-permanent point in time snapshot and manifestation of the various memes running around my brain, and as such any thoughts and opinions expressed within out-of-date posts may not the same, nor even similar, to those I may hold today.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *