How to login as root via SSH on DirectAdmin based servers?

Root access is available with all Managed VPS and Managed Dedicated Servers. This article provides a detailed walkthrough on how to login as root.

 

Applies to:

Managed VPS and Managed Dedicated Server with DirectAdmin control panel.


Log in as root


We disable password-based SSH access by default for security reasons. You will need to generate and authorize a key pair to connect to the server via SSH:

  1. Authorize your public key as the admin user.

  2. Log in to SSH.

  3. Run the following command:

    sudo su

  4. Enter your admin password.

  5. Done! You are now logged in as root with root-level privileges.

 

Access SSH Using an SSH Client


How to connect to SSH using Putty?

How to connect to SSH using Command Prompt in Windows?

How to connect to SSH from Mac?

  • 579 Users Found This Useful
Was this answer helpful?

Related Articles

How to create hosting accounts (cPanel accounts) and hosting packages?

  You will need to create a package in your WHM before creating a new hosting account. A hosting...

How to unblock mail ports?

Mail ports on new unmanaged VPS are blocked by default. You can request an unblock by opening a...

What is the difference between KVM and OpenVZ VPS?

OpenVZ VPS is similar to advanced CloudLinux based shared hosting where resources are...

How to install or reinstall an operating system on a VPS?

You can easily install or reinstall an operating system on your VPS from your Client Area. This...

How to set the default nameservers in DirectAdmin?

DirectAdmin allows you to set default nameservers for new users. These new default nameservers...