KI-Agenten-Zugriff auf Shared Hosting: ohne root, ohne sudo, ohne offenen Port
Wer eine Seite auf cPanel- oder CloudLinux-Shared-Hosting betreibt und sie einem KI-Agenten wie Claude, ChatGPT oder Cursor über hostetes MCP übergeben will, steht vor dem Problem: kein root, kein sudo, kein systemctl.

Veröffentlicht am 3. Dezember • Ursprünglich veröffentlicht auf termal.in am 3. Dezember
Du hast eine Website auf cPanel- oder CloudLinux-Shared-Hosting, etwa WordPress, eine Laravel-Anwendung oder einen statischen Build, und möchtest sie an einen KI-Agenten übergeben (Claude, ChatGPT, Cursor über Termalins gehostetes MCP) oder einfach aus einem Browser-Terminal darauf zugreifen. Aber du hast kein root, kein sudo, kein systemctl, und der Anbieter öffnet keinen eingehenden SSH-Port für dich. Die üblichen Anleitungen zum Installieren eines Agenten als Dienst setzen alle drei voraus. Hier ist der Weg, der das nicht tut: der Termalin Connector wird als dein eigener Benutzer installiert, bleibt vollständig in deinem Home-Verzeichnis und hält sich selbst über cron am Leben.
Shared-Hosting ist bewusst abgesichert, und jede dieser Sperren ist eine, auf die sich ein SSH-Agent normalerweise verlässt:
Der Connector ist so gebaut, dass er mit all dem zurechtkommt, weil er niemals auf einem Port lauschen muss. Er baut ausgehend eine einzige HTTPS/WebSocket-Verbindung zu Termalin auf und hält sie offen. Nichts Eingehendes muss weitergeleitet werden, nichts ist zu scannen.
Der Installationsbefehl ist genau der aus dem Kabinett, aber du führst ihn ohne sudo aus. Falls der SSH-Server des Anbieters nicht auf Port 22 läuft, gib dem Connector das Ziel mit:
curl -fsSL https://termal.in/i/ < token > | TERMALIN_TARGET = 127.0.0.1:65100 sh Vollbildmodus öffnen Vollbildmodus verlassen Weil kein root vorhanden ist, wechselt der Installer zu einer Installation im Benutzermodus, die nichts außerhalb deines Home-Verzeichnisses verändert:
Das war es auch schon: keine Änderungen an sshd_config (die könntest du ohnehin nicht vornehmen), keine installierten Pakete.
Ohne Service-Manager verlässt sich der Connector auf die Crontab, die Shared-Hosting fast immer zur Verfügung stellt:
Falls das Konto wirklich kein cron hat, läuft der Connector trotzdem (er wird detached mit setsid bzw. nohup gestartet und übersteht das Beenden deiner Shell), aber nach einem Reboot startet ihn nichts neu. Die Installations-Checkliste sagt das ganz offen.
Updates führst du aus, indem du den Installer erneut ausführst, weiterhin ohne sudo; automatische Updates sind optional ( TERMALIN_AUTO_UPDATE=1 in der Installationszeile oder später termalin-agent auto-update ).
Das sind keine Wunschvorstellungen, sondern Fälle aus Termalins Connector-Installationsmatrix (Connector 0.2.11), jeweils als unprivilegierter Benutzer mit dem sshd des Anbieters auf einem nicht standardmäßigen Port ausgeführt:
Der einzige harte Stopp ist ein mit noexec gemountetes Home-Verzeichnis: Ein Binary, das von dem einzigen Ort, an dem es leben darf, nicht ausgeführt werden kann, läuft nicht. Der Installer verweigert das deshalb lieber, als es vorzutäuschen. Wenn das bei deinem Host so ist, ist das Container-Image eine Rückfalloption (unten), und der reine Dateizugriff die andere (nächster Abschnitt).
Für diese Version ergänzt (Termalin 0.1.53, Ende November). Wenn der Connector auf dem Konto überhaupt nicht laufen kann, kannst du es für KI-Anwendungen trotzdem nur für Dateien öffnen. In den Einstellungen des Servers selbst nutzt die Option, dass KI-Anwendungen hier mit Dateien arbeiten dürfen, das gespeicherte SFTP- oder FTP-Login des Kontos, mit einem optionalen Ordner und einer Nur-Lese-Wahl. KI-Anwendungen können dort dann Dateien auflisten, lesen und schreiben, ohne Befehle, und jede Anfrage wartet auf deine Freigabe (15 Minuten, eine Stunde, ein Tag oder bis du sie widerrufst). Das Passwort bleibt mit deinem Master-Passwort verschlüsselt.
Das ist die ehrliche Grenze, und sie ist ein Feature: Der Agent meldet sich als dein unprivilegierter Shell-Benutzer an, hat also genau die Befugnisse, die du über SSH hast, und keine weiteren.
Funktioniert: alles, was in deinem Konto liegt:
Funktioniert nicht: alles, was root erfordert, weil du es nicht hast:
Der Grund, warum es sicher ist, das mit einer KI-Anwendung verbunden zu lassen:
Verbinde es in claude.ai oder ChatGPT mit einer einzigen Anmeldung, richte Cursor oder Codex auf den gehosteten MCP-Endpoint mit einem API-Schlüssel aus, oder lass den Agenten weg und öffne einfach ein Browser-Terminal für das Konto von deinem Handy. Die Anleitung für die Chat-Seite ist manage your servers from Claude or ChatGPT.
Der Benutzermodus auf einem Shell-Konto ist ein Weg, ein Container der andere. Wenn die Maschine Docker hat, etwa ein NAS, eine VPS, auf der du root besitzt, oder ein Heimlabor, ist das offizielle, rund 4 MB kleine Image einfacher als eine Installation im Benutzermodus und die Rückfalloption, wenn das Home-Verzeichnis mit noexec gemountet ist. Siehe the Connector in Docker und one container that reaches a whole home network.
Termalin ist ein kostenloser, plattformübergreifender SSH-Client mit integriertem MCP-Server, Befehlsregeln pro Connector und einem vollständigen Audit-Trail. Lade es herunter oder lies das Sicherheitsmodell. Der Zugriff auf ein Shared-Hosting-Konto erfordert Pro oder die 14-tägige Testversion.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
Posted on Dec 3 • Originally published at termal.in on Dec 3
You have a site on cPanel or CloudLinux shared hosting — WordPress, a Laravel app, a static build — and you want to hand it to an AI agent (Claude, ChatGPT, Cursor through Termalin's hosted MCP ) or just reach it from a browser terminal. But you have no root, no sudo, no systemctl, and the provider won't open an inbound SSH port for you. The usual "install an agent as a service" instructions assume all three. Here's the path that doesn't: the Termalin Connector installs as your own user, stays entirely in your home folder, and keeps itself alive with cron.
Shared hosting is deliberately locked down, and every lock is one an SSH agent normally leans on:
The Connector is built to land inside all of that, because it never needs to listen on a port — it dials out to Termalin over one HTTPS/WebSocket connection and holds it open. Nothing inbound to forward, nothing to scan.
The install command is exactly the one from the cabinet — but you run it without sudo. If the provider's SSH server isn't on port 22, point the Connector at it:
curl -fsSL https://termal.in/i/ < token > | TERMALIN_TARGET = 127.0.0.1:65100 sh Enter fullscreen mode Exit fullscreen mode Seeing no root, the installer switches to a user-mode install that changes nothing outside your home directory:
That's it — no sshd_config edits (you couldn't make them anyway), no packages installed.
With no service manager, the Connector relies on crontab, which shared hosting almost always gives you:
If the account genuinely has no cron, the Connector still runs (it's started detached with setsid / nohup and survives your shell exiting), but nothing restarts it after a reboot — the install checklist says so plainly.
You update by re-running the installer, still without sudo; automatic updates are opt-in ( TERMALIN_AUTO_UPDATE=1 on the install line, or termalin-agent auto-update on later).
These aren't aspirations — they're cases in Termalin's connector install matrix (Connector 0.2.11), each run as an unprivileged user with the provider's sshd on a non-standard port:
The one hard stop is a home directory mounted noexec: a binary that can't execute from the only place it's allowed to live can't run, so the installer refuses rather than pretend. If that's your host, the container image is one fallback (below), and files-only access is the other (next section).
Added for this copy (Termalin 0.1.53, late November). If the Connector can't run on the account at all, you can still open it to AI apps for files only. In the server's own settings, "Let AI apps work with files here" uses the account's saved SFTP or FTP login, with an optional folder and a read-only choice. AI apps can then list, read and write files there, with no commands, and each request waits for your approval (15 minutes, an hour, a day, or until you revoke it). The password stays encrypted with your master password.
This is the honest boundary, and it's a feature: the agent signs in as your unprivileged shell user, so it has exactly the powers you do over SSH, and no more.
Works — everything that lives in your account:
Doesn't work — anything that needs root, because you don't have it:
The reason this is safe to leave connected to an AI app:
Connect it in claude.ai or ChatGPT with one sign-in, point Cursor or Codex at the hosted MCP endpoint with an API key, or skip the agent and just open a browser terminal on the account from your phone. The walkthrough for the chat side is manage your servers from Claude or ChatGPT.
User-mode on a shell account is one route; a container is the other. If the machine runs Docker — a NAS, a VPS where you do have root, a home lab — the official ~4 MB image is simpler than a user-mode install, and it's the fallback when home is mounted noexec. See the Connector in Docker and one container that reaches a whole home network.
Termalin is a free, cross-platform SSH client with a built-in MCP server, per-Connector command rules and a full audit trail — download it, or read the security model. Reaching a shared-hosting account needs Pro or the 14-day trial.