Resetting the Plesk Administrator Password (Plesk Onyx for Linux)

For Plesk Onyx (Linux)

In this article, we'll show you how to reset the password for your Plesk administrator account.

Please Note

If you also need to reset your MySQL database password as a result of connectivity/password synchronization issues, please visit the following link for more information:

While previous versions of Plesk allowed you to recover your forgotten password, this option has been disabled in Plesk Onyx for security reasons. The two methods below are simply different ways of resetting your password.

The first method will generate a one-time login link that grants you access to Plesk without a password. This link is only valid for 24 hours. Once logged in, you can set a new password through the Users menu or by editing your profile.

Alternatively, the second method will reset the password directly in the SSH prompt.

Generating One-Time Login Links

  • Log on to the server using SSH.

  • Enter the command below to create two URLs. With the first URL, you can access Plesk via the hostname. The second URL allows you to access Plesk through the server's IP address.
    [root@localhost ~]# plesk login If the server hostname cannot be resolved over the Internet, the associated URL will not be created.

  • Copy one of the URLs and open it in your browser.

Resetting the Password

To reset the password, enter the command below after replacing the placeholder text my_passwd with the desired password.

[root@localhost ~]# plesk bin admin --set-admin-password -passwd 'my_passwd'

You can now log in to Plesk with the username admin and the password you assigned.