MZPanel Local
MZPanel Local is a small web console served by the server itself, for that one
server only. It is the break-glass path: if app.mzpanel.com is unreachable, you can
still keep what runs on your box healthy (restart services, renew SSL, run or restore a
backup, fix a site) from a browser, without the fleet dashboard. It is on every
plan and needs agent 0.2.133 or later.
It is not a second dashboard: there is no fleet, team, billing, marketplace or AI. It covers what you need to run one normal VPS by hand.
Turn it on, step by step
Section titled “Turn it on, step by step”-
SSH into the server and run:
Terminal window mz console on --for 4hMZPanel picks a random high port, gets a certificate, opens the port in the firewall and prints the URL, the certificate fingerprint and a one-time sign-in link.
-
Open the link. It works once and expires quickly.
-
When you are done:
Terminal window mz console off
Useful options and commands:
| Command | What it does |
|---|---|
mz console on [--port N] [--domain host] [--for 4h] [--allow-ip CIDR] | Start the console. --allow-ip limits the firewall rule to your IP; --domain gets a Let’s Encrypt certificate for a hostname; --for sets the auto-off window |
mz console login | Print a fresh one-time sign-in link |
mz console status | On or off, URL, port, active sessions, time left |
mz console off | Stop it, close the port, end all sessions |
The console turns itself off after 24 hours by default. The server’s Settings page in the dashboard has a Local console card that shows its status, the SSH commands to copy, and a Turn off button.
Signing in
Section titled “Signing in”- One-time link from
mz console onormz console login. Running the command already needs SSH, so the link inherits your SSH login. This is the main method. - SSH password: the console checks the user and password against the box’s own sshd.
It follows your sshd policy exactly: if password login is disabled, this method is
unavailable. Only root and members of
sudo(orwheel/admin) are admitted.
There is no cloud sign-in, on purpose: it would not work exactly when the console is needed.
What you can do
Section titled “What you can do”- Overview: live CPU, RAM, disk and load, services up or down, sites, containers and stacks, certificate expiry, last backups and recent faults.
- Operate: restart nginx, PHP-FPM, MariaDB, Redis, containers and stacks; issue and renew SSL; run a backup now and restore a snapshot; clean up disk; maintenance mode; purge caches; read site, nginx, PHP, service and container logs.
- Manage: create, delete and clone sites, domains and aliases, PHP version, SSL; WordPress core, plugin and theme updates; databases and users; files (browse, edit, upload, download, archive); Docker apps and stacks (start, stop, logs, edit compose, redeploy); mz cron jobs; PHP extensions and ini.
- Advanced: firewall rules, Fail2ban unban, SSH keys, OS updates.
Backup job definitions are read-only in the console (they belong to the control plane), but run-now and restore work. Not available in the console: the web terminal (you already have SSH), phpMyAdmin and pgAdmin, mail management, the marketplace, and everything fleet-wide.
How it stays safe
Section titled “How it stays safe”- Off by default and started only from SSH. The cloud can turn it off but cannot turn it on or mint sign-in links from the dashboard.
- TLS always: a short-lived Let’s Encrypt certificate for the server’s IP, or for
--domain, with a self-signed certificate and printed fingerprint as the fallback. - Narrow exposure: a random high port,
--allow-ip, a per-IP login rate limit and a Fail2ban jail, idle session timeout, CSRF protection and a strict content policy. - Limited power: the web process runs unprivileged and asks a root helper to run only a fixed list of actions. It cannot reconfigure or re-enable itself.
- Audited: console actions are uploaded to Team > Activity when the control plane is reachable.
Automate it
Section titled “Automate it”The console is meant to be driven from the box, so there is little to automate:
- On the box:
mz console on|login|status|offas above. - Over the API:
console.statusandconsole.offrun throughjobs_create.console.onandconsole.loginare never available to API tokens, because they open a root web console and print a sign-in link.
Gotchas & troubleshooting
Section titled “Gotchas & troubleshooting”- The browser warns about the certificate. Compare the fingerprint printed by
mz console onbefore you continue, or use--domainfor a trusted certificate. - Password sign-in is missing. sshd doesn’t allow password login, or doesn’t listen
on loopback. Use
mz console login. --portmust be 1024 to 65535. The console runs without permission to bind low ports.- It switched itself off. The default window is 24 hours. Start it again, with
--forif you need longer.
Related
Section titled “Related”- The agent: what keeps running without the control plane.
- Backups: scheduled backups that run while the control plane is down.
- Security model