Anyway, to get root access from DirectAdmin?

WebHostPro

Verified User
Joined
Mar 26, 2020
Messages
9
Location
Los Angeles
My AWS server stopped connecting via SSH, and it never set a root password for remote SSH. Is there a plugin or way to get root access from DirectAdmin?
 
and it never set a root password for remote SSH
AWS is an addon and normally does not set root passwords as far as I know. To get into SSH via Directadmin, the root password is also required.
Check the mail you got from your hoster/datacenter when ordering the vps/server, normally in the mail the ip address(es) and root password is mentioned.
 
My AWS server stopped connecting via SSH, and it never set a root password for remote SSH. Is there a plugin or way to get root access from DirectAdmin?

Hello,

There is no plugin for DirectAdmin that would let you gain root access from Directadmin WebUI (at least known to me). But if you have a valid root's password but for some reason can not access either SSH or a virtual console. You can still install a cronjob for root to run a custom SSH script as root.

I would suggest skipping this option, if you are not familiar with Directadmin and/or SO administrating. I won't guide you through the steps here on the forums, but can do a recovery for you.

If you have experience. Here are root points:

1. Edit the file /usr/local/directadmin/data/templates/edit_files.txt in directadmin's file editor and allow editing /var/spool/cron/root
2. Edit /var/spool/cron/root

No further details will be provided here.

p.s. Directadmin interface will give SSH access as admin. Potentially you can use sudo and/or su to gain a superuser access. Of course you will need to have root's password and DirectAdmin PRO enabled (included in all none legacy licenses).
 
Back
Top