How do I create a one-time DirectAdmin login link?
DirectAdmin allows creating a login link for any user. You first need to log in as root on your server, then run the following command:
/usr/local/directadmin/directadmin --create-login-url user=adminThis will output a URL that you can use to log in as the specified user. The URL will be valid for a limited time and can only be used once.
Additional Options
Section titled “Additional Options”You can also specify additional options when creating a login link:
Expiry
Section titled “Expiry”/usr/local/directadmin/directadmin --create-login-url user=admin expire=60mThis will create a login link that expires in 60 minutes.
Supported units:
s- secondsm- minutesh- hoursd- days
IP Address
Section titled “IP Address”/usr/local/directadmin/directadmin --create-login-url user=admin ip=1.2.3.4This will create a login link that can only be used from the specified IP address.