SSH Guru Blog.
← SSH Guru Blog
AI Assistance
·8 min read

Fix a Broken Exchange Server From Your Phone With Browser SSH

browser sshexchange serverai troubleshootingmobile adminrollback
Person holding and using a smartphone outdoors, focusing on hands and screen.
Photo: Tirachard Kumtanom on Pexels

The Register reported that Microsoft's October Exchange updates broke servers and left admins spending the weekend fixing them. If you're the one who gets paged, you know the feeling: you're away from your desk, maybe on a different network, and the only device within reach is your phone or a Chromebook.

You don't need a laptop. You don't need to VPN in. You don't need to upload your private key to a web console. SSH Guru runs a full browser ssh client in the browser, compiled from Go to WebAssembly, and an AI Guru that proposes commands for your approval. Keys stay encrypted in your browser vault. Nothing executes until you say so.

Connect from the browser

Open https://sshguru.com on your phone or Chromebook. Sign in. Your servers are listed. Tap one. The terminal opens, real terminal, not a simulated one. Copy, paste, resize, scrollback, session history, transcripts all work.

If the server sits behind a home router, office firewall, Starlink, 5G, or CGNAT, you have two paths:

  • Jump host (Pro plan): add a bastion host in the server settings. The browser client connects through it.
  • ESP32-S3 Bridge (Free plan includes one): flash an ESP32-S3 board from the browser over USB using Chrome or Edge Web Serial. The bridge dials outbound to SSH Guru. You write allow-list rules for the LAN targets it can reach, only those hosts, only SSH. Rules are written to the board and can only be changed over USB. No port forwarding, no VPN, no inbound listeners.

Either way, you're at a prompt on the Exchange server in seconds.

What the bridge actually looks like

The ESP32-S3 is a $15 development board. You plug it into a USB port on any machine that can reach the target LAN, a Raspberry Pi, a NUC, an old laptop acting as a home server. Open the bridge setup page in Chrome or Edge. Click "Flash." The Web Serial API writes the firmware. No external programmer, no command-line esptool.

Once flashed, the board boots, connects to Wi-Fi (you enter credentials once over USB), and opens a persistent WebSocket to SSH Guru. The allow-list you wrote, for example 192.168.1.10:22 for the Exchange box, is baked into the firmware. The board will not connect to anything else. If you need to change the target, you plug the board back into USB and rewrite the rules. There is no remote management interface on the bridge itself.

This matters when the broken server is a Linux box behind CGNAT on a Starlink connection at a remote site. You ship a board, someone plugs it in, you flash it over a video call, and you have access. No port forwarding on the Starlink router. No VPN endpoint to maintain.

Let the AI Guru read the situation

Type guru in the terminal. The AI Guru starts a side conversation. It doesn't run commands. It asks to see output, you approve, it reads, it explains, it proposes one command at a time with a risk tier:

  • Tier 0, read-only (safe to auto-approve if you want)
  • Tier 1, state-changing (restart a service, modify a config)
  • Tier 2, destructive (remove a package, delete data), requires you to type the hostname to confirm

Before any output reaches the model, a deterministic secret scanner replaces tokens, passwords, keys, and optionally IPs and hostnames with placeholders. The model never sees your secrets.

How the approval loop works in practice

You type guru> show me recent Windows updates and their status. The AI proposes a Get-HotFix query. Tier 0. You tap "Approve." The command runs in your terminal session. The output streams back to the browser, the scanner scrubs it, the model sees the scrubbed version, and the AI replies with a summary and the next proposed command. You never leave the terminal. The chat pane sits beside it on desktop, or slides over it on mobile.

If you enable auto-approve for tier 0, the read-only queries run without further taps. You still see every command and every output in the transcript. Tier 1 and 2 always require an explicit approval. Tier 2 adds the hostname confirmation: you must type the exact hostname of the target server before the command is sent. That extra friction stops a tired thumb from confirming a Remove-Item -Recurse on the wrong box.

Diagnose the broken update

Start with what the AI can see safely:

guru> show me recent Windows updates and their status

Approve the tier-0 command. The AI runs Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 20 (or the equivalent wmic qfe query) and summarizes: which KB numbers installed, when, and whether any match the October rollup.

Next, check the Exchange health:

guru> check Exchange service status and recent event log errors

Tier 0 again. The AI runs Get-Service *Exchange* | Select-Object Name,Status and pulls the last 50 Application and System event log entries with Get-WinEvent. It highlights failed services, database mount failures, and the specific error codes that point to the bad update.

If the AI sees the October cumulative update (KB number) and the symptoms match, Transport service down, databases dismounted, Event ID 1022 or 1032, it will say so plainly.

Reading the event log without drowning in noise

Raw Get-WinEvent output is verbose. The AI filters for Level -le 2 (Error and Critical) and known Exchange sources: MSExchangeTransport, MSExchangeIS, MSExchangeADTopology. It surfaces the first occurrence of Event ID 1022 (checksum error on a database page) or 1032 (database missing required logs). It also checks the System log for Service Control Manager events showing Exchange Transport failing to start within the timeout.

You see a concise list:

[Error] MSExchangeTransport  10:14:22  Event ID 1022  Database 'Mailbox Database 1' checksum failure
[Error] MSExchangeIS         10:14:25  Event ID 1032  Database 'Mailbox Database 1' missing log generation 4521
[Error] Service Control Manager 10:15:01  Event ID 7011  Timeout (30000 ms) waiting for MSExchangeTransport

That is enough to confirm the update corrupted the database or broke the transport dependencies. You don't scroll through hundreds of lines on a phone screen.

Roll back the update

Now you need a tier-1 command. The AI proposes:

wusa /uninstall /kb:XXXXXXX /quiet /norestart

You see the command, the KB number, the flags. You approve. The AI runs it. You watch the output in the terminal. When it completes, the AI proposes a restart:

shutdown /r /t 60 /c "Rolling back broken Exchange update"

Tier 1. You approve. The server reboots. You wait. Reconnect. Run the health checks again. Transport service running? Databases mounted? Mail flow working?

If the rollback doesn't fix it, the AI can propose the next tier-1 step: run the Exchange Server Health Checker script, check disk space, verify certificate validity, or repair the installation from the original media.

Every step, you decide. The AI never executes on its own.

What if the rollback fails

Sometimes wusa /uninstall returns 0x800f0830 (update not found) or 0x80070643 (fatal error during installation). The AI sees the exit code, explains it, and proposes the next tier-1 action: run the Health Checker script from the Exchange ISO (\Setup\ServerRole\ExchangeHealthChecker.ps1), or check C:\Windows\Logs\CBS\CBS.log for the detailed failure reason. You approve each query. The AI helps you read the log, it doesn't hide it.

If disk space is the root cause (the update filled the system drive), the AI proposes Get-PSDrive C and Get-ChildItem C:\Windows\SoftwareDistribution -Recurse | Measure-Object -Property Length -Sum. Tier 0. You see the numbers. If you need to clear the SoftwareDistribution folder, that's tier 1. You approve. The AI proposes Stop-Service wuauserv; Remove-Item C:\Windows\SoftwareDistribution\* -Recurse -Force; Start-Service wuauserv. You type the hostname to confirm the destructive tier-2 step if the AI classifies it that way.

Why this works on a phone

The terminal is responsive on mobile. Pinch to zoom. The on-screen keyboard has a dedicated row for Ctrl, Tab, Escape, pipe, tilde, the keys you actually need. Landscape mode gives you 80+ columns. You can split the screen on Android or iPadOS: terminal on one side, the AI chat on the other.

On a Chromebook, it's a full desktop browser. You get a real keyboard, multiple tabs, and the same encrypted vault.

Your private keys never leave the browser. They're encrypted with Argon2id and AES-256-GCM under your passphrase. SSH Guru doesn't hold them. Host keys are pinned; you're warned if one changes.

The vault in practice

When you add a server, you paste the private key or enter the password once. The browser derives a key from your vault passphrase using Argon2id (memory-hard, 64 MB, 3 iterations) and encrypts the secret with AES-256-GCM. The ciphertext stays in IndexedDB. The passphrase never hits the network. If you clear browser data, the vault is gone. SSH Guru cannot recover it. There is no "forgot password" flow for the vault.

Host key pinning works like SSH's StrictHostKeyChecking=yes but stored in the browser. The first time you connect, the fingerprint is saved. On subsequent connections, a mismatch throws a blocking warning. You must explicitly acknowledge the change. This prevents a compromised bridge or a DNS hijack from silently redirecting your session.

When you're back at your desk

The session transcript is saved. You can review every command, every approval, every output. If you need to document the incident, export the transcript. If you want to automate the rollback for other servers, the AI can write a runbook (Pro feature), but the runbook still requires approval at each tier-1 and tier-2 step unless you enable read-only autopilot for tier 0.

Runbooks vs. ad-hoc sessions

A runbook is a saved sequence of prompts and expected risk tiers. For the Exchange rollback, the runbook might be:

  1. List recent updates (tier 0)
  2. Check Exchange service health (tier 0)
  3. Uninstall KBXXXXXXX (tier 1)
  4. Reboot server (tier 1)
  5. Verify mail flow (tier 0)

You run the runbook against a list of servers. At each tier-1 step, the UI pauses and asks for approval. You can approve all, approve one, or stop. The transcript records which servers got which approvals. This is not Ansible. It doesn't run unattended. It's a checklist that executes the commands for you while keeping the human in the loop.

Read-only autopilot (Pro) lets tier-0 steps run automatically across the server list. You still see the aggregated output. No state changes happen without you.

The weekend you get back

Microsoft will issue a fix. They always do. But the next time an update breaks Exchange, or Linux, or Kubernetes, or whatever runs your infrastructure, you don't need to drive to the office. You don't need to carry a laptop "just in case."

Open the browser. Connect. Ask the AI. Approve the fix. Go back to your weekend.

Try SSH Guru free, 3 servers, 30 Guru messages per day, 3 watches, 1 bridge.

Comments

No comments yet. Be the first.

Leave a comment

Comments appear once the author approves them.