ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

JackedIN mit KI-Agenten nutzen: SSH, Telnet und Serial integriert

JackedIN 1.2.1 bietet KI-Agenten einen Zugang zu SSH-, Telnet- und seriellen Verbindungen über einen Terminal. Eine Sicherheitsregel mit menschlicher Freigabe vor Änderungen ist für die nächste Version geplant und in 1.2.1 noch nicht enthalten.

dev.toDienstag 01:19 · 24.11.DE3 Min. Lesezeit
Bild: dev.to

Veröffentlicht am 24. Nov • Ursprünglich veröffentlicht auf getpathprobe.com

Dieser Artikel beschreibt JackedIN 1.2.1 sowie eine Sicherheitsregel, die für die nächste Version entwickelt wird. Eine menschliche Freigabe vor jeder Änderung ist in 1.2.1 noch nicht enthalten. Die maßgebliche Version befindet sich auf der Produktseite: Using JackedIN with AI agents.

JackedIN ist ein SSH-, Telnet- und Serial-Terminal für Windows, Linux und Raspberry Pi. Dasselbe Programm ist gleichzeitig ein Desktop-Fenster, eine Kommandozeile, eine lokale API und ein stdio-MCP-Server. Es enthält eingebaute Profile für Junos, Cisco IOS/NX-OS, Arista, Nokia, MikroTik und weitere.

Verwenden Sie das Programm ausschließlich auf Geräten, denen Sie gehören oder deren Verwaltung Ihnen gestattet ist. Die Beispiele verwenden 192.0.2.10 und router1. Halten Sie Passwörter von der Kommandozeile fern; setzen Sie stattdessen JACKEDIN_PASSWORD oder eine Credential-Referenz.

Dies ist die Sicherheitsregel, die für KI-Sitzungen entwickelt wird und noch nicht in JackedIN 1.2.1 enthalten ist:

Bis diese ausgeliefert ist, gehen Sie davon aus, dass exec jeden Befehl senden kann, den Sie ihm zu ausführen erlauben, und beschränken Sie den Agenten darüber, wie Sie ihn anweisen und welche Tools Sie aktivieren.

Wenn Sie einen Befehl in eine rohe SSH- oder Serial-Sitzung pipen, beendet das Dateiende die Sitzung oft, während das Gerät noch seitenweise ausgibt, oder nachdem es einen Fehler ausgegeben hat, den der Agent nie gelesen hat. Der Agent fährt fort, als hätte die Änderung funktioniert.

JackedIN ist so gebaut, dass genau das nicht passiert.

jackedin exec liest zunächst die gesamte Befehlsliste ein, sendet einen Befehl und wartet, bis der Geräte-Prompt zurück ist, bevor der nächste gesendet wird. Es arbeitet sich durch --More--, ---(more)---, ---(more 100%)--- und ähnliche Marker, um dann die vollständige Ausgabe zurückzugeben. Auch eine stdin-Pipe beim Verbinden wartet nach jeder Zeile auf den Prompt; nachdem stdin endet, wartet es auf den Prompt, der auf die letzte Zeile folgt, und beendet sich dann.

Es gibt keinen --terminator-Parameter. Der Geräte-Prompt und diese Pager-Marker sind die Art, wie JackedIN erkennt, dass ein Befehl abgeschlossen ist. --prompt REGEX ersetzt den Prompt, den JackedIN erkennt. --vendor NAME erzwingt ein Profil; ohne diese Angabe wählt der Prompt oder das Banner eines aus.

Dieselben Timing-Felder gibt es in der API und im MCP: lineDelayMs, charDelayMs und waitForEcho.

--dry-run gibt den Plan aus und stellt keine Verbindung her. Bevorzugen Sie exec gegenüber dem Piping in connect.

jackedin exec --host 192.0.2.10 --user admin --trust-host-key \ --json --timeout 8 --cmd 'show version' Vollbildmodus öffnen Vollbildmodus verlassen JSON-Ausgabe --json und --output json sind dasselbe Flag. JACKEDIN_JSON=1 entspricht ihnen. Bei exec wird jeder Befehl als strukturierte Daten zurückgegeben: command, ok, output, prompt, matched_error, timed_out, duration_ms. ok ist false, wenn ein Befehl, ein Timeout oder eine Verify-Prüfung fehlgeschlagen ist. Auch fleet und inventory sync akzeptieren JSON-Ausgabe.

Fangen Sie diese Ausgabe unter Windows mit jackedin.com auf, nicht mit jackedin.exe.

jackedin mcp ist ein stdio-MCP-Server für die lokale API. Er wählt ausschließlich 127.0.0.1 an. Es handelt sich nicht um eine öffentliche URL.

{ "mcpServers": { "jackedin": { "command": "jackedin", "args": [ "mcp" ], "env": { "JACKEDIN_API_TOKEN": "paste-the-token-from-settings", "JACKEDIN_API_PORT": "47321" } } } } Vollbildmodus öffnen Vollbildmodus verlassen Die mitgelieferten Beispiele enthalten dieses Snippet für generische Clients, Cursor und Claude Desktop. Das Token ist JACKEDIN_API_TOKEN, wenn diese Variable gesetzt ist, andernfalls das in den Einstellungen gespeicherte Token.

Tools: list_sessions, open_session, send_session, exec, send_break, read_session, close_session, wait_for_output, scan_ports, ping_host, trace_host, read_events. Bevorzugen Sie exec. exec und send_break erfordern nicht die Einstellung automationApi; wait, scan, ping, trace und events schon. scan_ports weist den Aufrufer an, nur Geräte zu scannen, deren Test ihm gestattet ist.

Dieselbe Funktionalität ist über HTTP auf dem lokalen Rechner verfügbar: POST /v1/exec, POST /v1/sessions/{id}/exec und die weiteren Routen in der mitgelieferten Datei docs/openapi.yaml. Der Listener ist deaktiviert, bis Sie ihn aktivieren, an 127.0.0.1 gebunden und durch ein Token geschützt. Exponieren Sie ihn nicht in einem Netzwerk.

Dieselbe Regel wie in der Überschrift oben. Sie wird für die nächste Version entwickelt und ist nicht in 1.2.1 enthalten: In KI-Sitzungen laufen Show-Befehle frei; ein Befehl, der etwas ändert, wartet auf einen Menschen; der Agent kann seine eigene Änderung nicht freigeben.

Wir entwickeln JackedIN. Dieser Artikel beschreibt die aktuelle App-Version 1.2.1 und weist die menschliche Freigabe vor jeder Änderung als Funktion der nächsten Version aus.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

Posted on Nov 24 • Originally published at getpathprobe.com

This article describes JackedIN 1.2.1, plus a safety rule being built for the next release. Human approval before any change is not in 1.2.1 yet. The canonical version is on the product site: Using JackedIN with AI agents.

JackedIN is an SSH, Telnet and serial terminal for Windows, Linux and Raspberry Pi. The same program is a desktop window, a command line, a local API, and a stdio MCP server. Built-in profiles for Junos, Cisco IOS/NX-OS, Arista, Nokia, MikroTik and more.

Use it only on devices you own or are allowed to manage. Examples use 192.0.2.10 and router1. Keep passwords out of the command line; set JACKEDIN_PASSWORD or a credential reference instead.

This is the safety rule being built for AI sessions, and it is not in JackedIN 1.2.1 yet:

Until that ships, treat exec as able to send any command you allow it to run, and limit the agent by how you prompt it and which tools you enable.

If you pipe a command into a raw SSH/serial session, end-of-file often ends the session while the device is still paging, or after it printed an error the agent never read. The agent moves on as if the change landed.

JackedIN is built so that does not happen.

jackedin exec reads the whole command list first, sends one command, and waits until the device prompt is back before it sends the next. It pages through --More--, ---(more)---, ---(more 100%)---, and similar markers, then returns the complete output. A stdin pipe on connect also waits for the prompt after each line; after stdin ends, it waits for the prompt that follows the last line, then exits.

There is no --terminator flag. The device prompt, and those pager markers, are how JackedIN knows a command has finished. --prompt REGEX replaces the prompt JackedIN detects. --vendor NAME forces a profile; omit it and the prompt or banner picks one.

The same pacing fields on the API and MCP are lineDelayMs, charDelayMs, and waitForEcho.

--dry-run prints the plan and connects to nothing. Prefer exec over piping into connect.

jackedin exec --host 192.0.2.10 --user admin --trust-host-key \ --json --timeout 8 --cmd 'show version' Enter fullscreen mode Exit fullscreen mode JSON output --json and --output json are the same flag. JACKEDIN_JSON=1 matches them. On exec, each command is returned as structured data: command, ok, output, prompt, matched_error, timed_out, duration_ms. ok is false if any command, timeout, or verify check failed. fleet and inventory sync also accept JSON output.

On Windows, capture that output with jackedin.com, not jackedin.exe.

jackedin mcp is a stdio MCP server for the local API. It dials 127.0.0.1 only. It is not a public URL.

{ "mcpServers": { "jackedin": { "command": "jackedin", "args": [ "mcp" ], "env": { "JACKEDIN_API_TOKEN": "paste-the-token-from-settings", "JACKEDIN_API_PORT": "47321" } } } } Enter fullscreen mode Exit fullscreen mode The packaged examples include this snippet for generic clients, Cursor, and Claude Desktop. The token is JACKEDIN_API_TOKEN if that variable is set, otherwise the token saved in Settings.

Tools: list_sessions, open_session, send_session, exec, send_break, read_session, close_session, wait_for_output, scan_ports, ping_host, trace_host, read_events. Prefer exec. exec and send_break do not require the automationApi setting; wait, scan, ping, trace, and events do. scan_ports tells the caller to only scan devices they are allowed to test.

The same work is available over HTTP on the local machine: POST /v1/exec, POST /v1/sessions/{id}/exec, and the other routes in the packaged docs/openapi.yaml. The listener is off until you enable it, bound to 127.0.0.1, and token-protected. Do not expose it on a network.

The same rule as the headline above. It is being built for the next release and is not in 1.2.1: in AI sessions, show-type commands run freely; a command that changes something waits for a human; the agent cannot approve its own change.

We build JackedIN. This article describes the current 1.2.1 app, and marks human approval before any change as coming in the next release.

Originaltitel: Using JackedIN with AI agentsQuelle: dev.to (dev.to). Original öffnen