Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
- The password of the Plesk admin (Administrator) user is lost. How to get or reset it?
Answer
Note: For security reasons, it is not possible to reset the Plesk Administrator user password on the Plesk login page while using the Forgot your password? option.
Use one of the solutions below:
Use a one-time login link (which contains a token) to log into Plesk without the need for a password.
To generate the one-time login link:
-
(Additional step for Plesk on Windows) Start the Command Prompt as Administrator
-
Run the following command to generate two links with login tokens, one to access Plesk via its hostname and another to access Plesk via its server IP address:
plesk login
Note: If a server hostname is not resolvable from the Internet, a hostname link will not be generated.
-
Copy the generated link and open it in a web browser
For Linux
-
Log into your server via SSH as the root user
-
Execute the command below, while replacing
your_new_password
with your new password of choice and keeping" "
on the sides:# plesk bin admin --set-admin-password -passwd "your_new_password"
Note: The password you are setting should not contain quotes, spaces, "$" symbol, national characters or exclamation signs.
Reference for "$" symbol - https://webpros.atlassian.net/browse/PPPM-14809. Cannot be fixed on our side, if using "$"symbol is absolutely necessary, it should be escaped with "/"
For Windows
-
Connect to your server via RDP
-
Execute the command below, while replacing
your_new_password
with your new password of choice and keeping" "
on the sides:C:\> plesk bin admin --set-admin-password -passwd "your_new_password"
Note: The password you are setting should not contain quotes, spaces, "$" symbol, national characters or exclamation signs.
Reference for "$" symbol - https://webpros.atlassian.net/browse/PPPM-14809. Cannot be fixed on our side, if using "$"symbol is absolutely necessary, it should be escaped with "/"
Comments
8 comments
Hi,

I am unable to Log into Plesk using the link. I am getting this error. Now,everyone is asking me to use SSH for this. How to do that? For last 4 hours, I am searching. Please help.
ผมก็เข้าไม่ได้ เเก้ยังไงครับ
What worked for me (Red Hat 9) was
>sudo plesk bin admin --set-admin-password -passwd "<your_new_password>"
The password cannot have exclamation mark (!) in it.
Hello,
As of 18.0.60, this works with exclamation sign.
Normally - quotes, spaces or non-ascii printable characters are not accepted.
new sintaxe to change passoword:
plesk bin admin --set-password -passwd <new_password>'
No
Thank you for this notice. It has helped me to recover my admin password. if it can help, the password can't include the character & when using the command line to generate it.
did this using a ! that was within a “password! ”
However - it seemed to delete our username “root” and we could only login with “admin” and the new password. Also - it seemed like it needed to restart or something because it would give us some errors logging in - does this command also change any dependencies it needs - grok says you may need to also give it some database password changes to match your new admin password - this really could use some more documentation or if this system just changes it and pushes everything down.
If the “admin” username is something else like “fakeadmin” - does this just also get rid of the username alias and make it the “admin” one because then the system somehow thinks there is other usernames taken and we don't know where we would find those to delete or reset them.
Please sign in to leave a comment.