Enable Root Login in Ubuntu Server

For security reason root login is disabled in Ubuntu servers by default. If you want to enable root login for your Ubuntu server follow the steps below.

 

1st login here servercp.rainhost.net or your rainhost client area with the username and password sent by rainhost.

then under ‘Serial Console (KVM)’ or IPMI Access click on ‘Generate login’ , then click on ‘Open Console’ now login with the username and password you just generated, after login copy paste the below commands.

apt-get update

apt-get install nano

nano /etc/ssh/sshd_config

Now find “PermitRootLogin without-password” and change that to “PermitRootLogin yes” without quote and press ctrl+x to save that file, then pres ‘y’ then press enter.  Now restart SSHD with the below command.

service ssh restart

Now you can able to login as root in your Ubuntu server.

rainweb has written 24 articles

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>