Locked out of the admin panel? How to recover access
If you cannot sign in to the administrator panel (https://<server>:2087), you can always regain access from the server's command line. You need root access over SSH (or your provider's console).
Symptoms
- The password is refused at the Admin login.
- You lost the phone with the authenticator app for two-factor sign-in.
- The admin panel does not open at all from your address, while the customer panel on port 2083 does.
- After several failed attempts, your address is blocked.
Causes and fixes
You forgot the password
Set a new one as root. The default administrator username is root (unless you chose another during installation):
sahaab passwd root 'N3w-Strong-Pass'
The password needs at least 8 characters and at least 3 of: lowercase, uppercase, digits, symbols.
If you never changed the password generated at installation, it is also in /root/panel-install-summary.txt (readable by root only).
You lost the two-factor phone
First try one of your 10 recovery codes: on the Verification step, enter a recovery code instead of the 6-digit code. Each code works once. If you have none left, turn two-factor sign-in off as root:
sahaab 2fa:disable root
Sign in with the password, then turn two-factor sign-in on again in Two-Factor Auth (section Account).
The admin panel is limited to certain IP addresses
When Admin panel access by IP is set in Brute Force Protection and your address changed, the admin panel does not open for you. Add your current address, or remove the restriction:
sahaab admin:allow-ip 203.0.113.25
sahaab admin:allow-ip clear
Your address was blocked after failed logins
After 5 failed logins in 15 minutes, an address is blocked for 15 minutes (the defaults in Brute Force Protection). Wait until the block ends, or sign in from another address and click Unblock under Blocked IPs.
Still not working?
- Check that the panel's web server runs:
systemctl status nginx, and restart it withsystemctl restart nginx. - If you just changed the firewall and lost access, wait: an unconfirmed firewall change is undone automatically after 90 seconds.
Common questions
Can a reseller or customer recover their password the same way?
The administrator can set a new password for them in the admin panel, on the account or reseller page.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- The sahaab command line: every command explained
Commands of the sahaab tool on the server: reset a password, turn off two-factor sign-in, unlock the admin panel by IP, run tasks, nameservers and more.
- How to change the administrator password and panel language
Change the password of your administrator login in the admin panel, what the new password needs, and how to choose the language of your panel.
- How to open a root terminal in your browser (no SSH client)
Open a root shell on the server from the admin panel's Terminal page, how the one-time sign-in works and when the session closes.