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

Why human approval matters for AI-proposed SSH commands

ai assistancessh securitycommand safety
A person working on a laptop in a modern office setting, focused on typing.
Photo: iam hogir on Pexels

Why human approval matters for AI-proposed SSH commands with ai assistance

If you have used an AI assistant to generate a Linux command, you have probably felt the flicker of doubt: Is this really what I want to run? That hesitation is the signal. SSH Guru was built because the industry keeps shipping AI tools that execute commands autonomously, and the result is usually a broken service, a deleted file, or an opened port that should have stayed closed.

We take a different approach. Every command an AI proposes in SSH Guru requires your approval before it is sent to the server. No exceptions. This is not a marketing feature, it is the core of how we keep browser-based SSH both powerful and safe.

Risk tiers, not guesswork

The approval flow is built on fixed risk tiers. There is no vague "this might be dangerous" label. The system classifies every proposed command into one of three tiers:

  • Tier 0, read-only. cat, ls, df, uptime, any command that outputs information without modifying the system.
  • Tier 1, state-changing. apt, systemctl, modprobe, ip route, any command that alters configuration or installs packages.
  • Tier 2, destructive. rm -rf, dd, fdisk, reboot, shutdown, any command that can delete data or take the system offline.

When the AI proposes a command, the tier appears next to it. Tier 0 commands are approved with a single click. Tier 1 requires a confirmation button. Tier 2 is the strictest: you must type the hostname of the server you are about to modify. If you do not type the hostname, the command does not run.

This is not about slowing you down. It is about making the cost of a mistake visible in the moment, before the command leaves your browser.

The gate keeps the AI honest

AI models are good at suggesting patterns, but they do not understand the specific state of your server. A model might suggest rmdir /var/www to clean up old logs, not realizing that your virtual host configuration lives in that directory. A model might suggest iptables -A INPUT ... to fix a connection issue, not realizing you are already behind a firewall that blocks that traffic.

The approval gate forces the model to stay in a proposing role. It can suggest, but it cannot act. If the suggestion is wrong, you see it before it executes. If the suggestion is correct, you approve it and move on. Either way, you are the one who decides.

Secret scrubbing so you do not leak credentials

A command that looks harmless can still contain secrets. If you ask the AI to "check the logs for failed logins," it might return a grep command that includes a password that recently appeared in the log output. If that command were to run automatically, your credential would be sent to the model provider and potentially logged.

SSH Guru runs every proposed command through a deterministic secret scanner before it reaches the model. Tokens, passwords, and keys are replaced with placeholders. IP addresses and hostnames can optionally be scrubbed as well. This means the model never sees your real credentials, and even if the output were logged, your secrets would remain hidden.

Human-in-the-loop is not a buzzphrase

We have heard the phrase "human-in-the-loop" used as a buzzword to describe systems that still act automatically but claim to have a human watching. That is not what we do. In SSH Guru, the loop is literal: the human decides, and the command does not move until the human acts.

  • If you approve a tier 0 command, it runs immediately in the browser terminal.
  • If you approve a tier 1 command, it runs after you click confirm.
  • If you do not approve a tier 2 command, if you do not type the hostname, the command stays exactly where it is: in the proposal box.

There is no silent execution. There is no "I will run this later when you are not looking." The command stays put until you say yes.

Why this matters for remote administration

People who administer servers over SSH often do so from devices that are not their primary workstation: a Chromebook in a coffee shop, an iPad on a couch, a phone on a train. The network is unpredictable. The connection may drop. The server may be behind CGNAT, a home router, or a corporate firewall.

In that context, an autonomous AI that can run reboot or rm -rf is a liability, not a help. The distance between you and the console amplifies the risk. A typo that would be recoverable on a local machine can take a production service offline when you are connecting from a phone.

The approval flow is especially valuable in these scenarios because it brings the decision point back to your browser, where you can see the command, the tier, and the hostname before anything is sent.

The bigger picture

AI-assisted server administration is not going away. The question is whether the AI works for you, or you work for the AI. SSH Guru is designed so that the AI works for you: it proposes, you decide, the command runs only if you say yes.

If you have been burned by an AI that executed a command you did not expect, or if you are simply cautious about letting a model near your production servers, the approval flow is a safety net that does not get in the way when you are working confidently. It is a small extra step that prevents a large class of accidents.


SSH Guru is a browser-based SSH client and AI server assistant. Keys and passwords are encrypted in the browser with Argon2id and AES-256-GCM under the user's passphrase. Private keys, passwords, and SSH sessions are not held by SSH Guru. AI-proposed commands use fixed risk tiers, and tier 2 commands require the user to type the hostname before execution.

Frequently asked questions

Q: Can I disable the approval flow and let the AI run commands automatically? A: No. The approval flow is built into the client and cannot be disabled. This is a design choice, not a temporary setting.

Q: What happens if I start typing the hostname for a tier 2 command but change my mind? A: The command does not run until you press enter in the confirmation box. You can clear the hostname and cancel at any time.

Q: Does the AI have access to my server logs or configuration? A: No. The AI runs in a sandbox and only sees the command output you send it. It does not have persistent access to your server.

Q: Can the AI propose commands across multiple servers at once? A: No. Each command proposal is tied to the server session you are currently viewing. The AI does not have a global view of your infrastructure.

Q: What if I need to run a tier 2 command frequently? A: You can save a runbook on the Pro plan that encodes the command with the correct hostname already specified, so the approval step only requires your confirmation, not re-typing the hostname each time.


Last updated: 2024. The risk-tier system and secret-scanning features are consistent across all paid plans. The Free plan includes tier-0 and tier-1 proposal with approval; tier-2 hostname requirement applies on all plans.

Comments

No comments yet. Be the first.

Leave a comment

Comments appear once the author approves them.