DirectAdmin Manual

Helping you get the most out of DirectAdmin and your web!

Login keys for APIs and services

A login key is an additional password for the same DirectAdmin username. It is intended mainly for APIs, automation or temporary restricted access. It is not an SSH key.

Create a key

  1. Click the username at the top right and choose Login Keys → Create Key.
  2. Enter a descriptive label without sensitive data.
  3. Generate a random value and store it immediately; it cannot be displayed or recovered later.
  4. Set the shortest practical expiry and automatic deletion after expiry.
  5. Add the source IP or CIDR network when known.
  6. Allow only commands required by the integration and confirm with the current password.

If no allow or deny command is selected, the key may be allowed to use every command available to the account. Do not grant ALL_USER, CMD_LOGIN_KEYS or management of other keys unless explicitly required.

API or web login

Without Allow HTM, the key is API-only. Enable web login only for a specific need. Do not share a common key between people instead of using individual accounts.

Key maintenance

Name each key after the application and purpose. Delete an unused, exposed or unknown key immediately and replace it in the integration. Treat the key value as a password.

Back to chapter overviewContact Euroserver support