Aminserve: Your reliable partner for RDP VPS Dedicated Server VPN since 2010

No restriction, Crypto accepted from anyone, anywhere!

Login as root user in Ubuntu shell (SSH)

To prevent successful brute force attacks to Ubuntu SSh servers, the “root” user is not enabled by default.

If you need to login as root user, you can login as a normal user and type this command:

sudo -i

It asks for root password obviously.

If you need to enable the root user login permanently (which is highly not recommended) you should edit the SSH configuration file, so type the command:

vi /etc/ssh/sshd_config

and find this line: “PermitRootLogin yes” and change it to “PermitRootLogin no”. Please remember you can use the “insert” key to write this lines.

Now you need to restart the SSH server:

/etc/init.d/sshd restart

This last command reload the configuration file which you edited before. Now you can login using the “root” user.

 

More Posts

Can’t decide which plan is right for you? We will guide you step by step.

logo

Quality hosting since 2010