ispmanager 6

/
/
Authorization with a temporary key

Authorization with a temporary key

Why?

To log in into the control panel without a username and password using a temporary key only.

Instructions

PLEASE NOTE!

Generating a temporary key is only possible under an account with superuser rights (root by default).

Connect to the server via SSH with the superuser permissions.

Generate a random key at least 16 characters long using the following command:
pwgen -s 16 1

Details:

  • 16 — combination length;
  • 1 — number of generated combinations.

 

Copy the key to the clipboard and execute the following function to create an access key:
/usr/local/mgr5/sbin/mgrctl -m ispmgr session.newkey username=user key=generatedKey

Details:

  • user — username;
  • generatedKey — the combination you have copied to the clipboard earlier.

To log in with a key, follow the URL in the browser:
https://domain.com:1500/ispmgr?func=auth&key=generatedKey

Details:

  • domain.com — a domain name or a public IP address of the control panel;
  • generatedKey — the combination you have copied to the clipboard earlier.

Following the URL will automatically log you in into the control panel.

The temporary key will be reset automatically after 1 hour of panel inactivity.

Key validity period can be modified using the OneTimeExpire parameter in the configuration file.

In this article