Skip to content

Locked out of the panel

Each recovery command below runs on the panel’s server. Prefer the smallest fix. After any of them, sign in and make a fresh backup.

SSH to the server as a user who may run sudo. The panel may be running or stopped as each command says.

sudo aftab reset-admin sets a new owner password and prints it once. It does not change clients, tokens or the secret path. Sign in with the new password and store it.

sudo aftab reset-admin also clears two-factor for the owner so you can sign in with the new password and enrol again in Settings → Account. It does not remove other admins’ two-factor.

sudo aftab info shows the current path. To set a new one, change Secret path in Settings → Panel while signed in, or use sudo aftab set for the web base path key your install uses — then open the new URL. Old bookmarks break; clients’ VPN configs do not use this path.

Use Settings → Panel → Get a certificate, or sudo aftab ssl as HTTPS describes. If the panel will not start because of a certificate aftab-panel cannot read, fix the file permissions or paths, then sudo aftab restart.

sudo aftab unban clears login-guard bans. sudo aftab log and journalctl -u aftab -n 50 show start errors. Installer refusals (iptables-legacy, missing users, setpriv, unread certificate) print a one-line fix — see Install.

sudo aftab compromised (and the panel’s compromised flow) replaces what the UI lists; follow on-screen steps. Factory reset is sudo aftab factory-reset and wipes the panel after confirmation — last resort; restore from backup afterward if you have one.

sudo aftab rollback returns to the version kept for 7 days. See Updates and An update went wrong.

You sign in in the browser. sudo aftab status is ready. Make a backup.

Troubleshooting. If the database is gone, Move to a new server from an off-server backup.

Unless you factory-reset or restore, client configs and peer keys stay. reset-admin does not rotate API tokens or bridge join secrets.