Files
docu/issues/2026-06-28-tmux-osc11-windows-terminal-leak.md
root 92148f41a7 Doku: tmux OSC-11-Leak (Windows Terminal) + pve2 SSH auf Horus.
Issue und Shared-Config für escape-time/O11-Fix; pve2-Keys in horus-root.pub.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 18:38:02 +02:00

1.9 KiB

tmux — OSC-11-Leak im Prompt (Windows Terminal + SSH)

Datum: 2026-06-28
Status: gelöst
Betroffen: tmux auf pve1, pve2, Horus · Client: Windows Terminal über SSH


Symptom

Beim Start von tmux oder nach SSH-Verbindung erscheint Text direkt im Prompt, z. B.:

11;rgb:0c0c/0c0c/0c0c

Wirkt wie Müll oder Injection — ist es nicht.


Falsche Spur

  • Kein Virus/Malware — keine Sicherheitsmaßnahmen nötig
  • Nicht fish-spezifisch (tritt in tmux auf, unabhängig von fish/bash)

Echte Ursache

Mechanismus Detail
OSC 11 tmux fragt beim Start die Hintergrundfarbe des Terminals ab
Antwort Terminal antwortet z. B. rgb:0c0c/0c0c/0c0c (dunkles Grau)
Timing-Leak Bei SSH-Latenz + zu kurzem escape-time bricht tmux die Escape-Sequenz ab
Ergebnis Rest landet als scheinbare Tastatureingabe in stdin / Prompt

Typische Kombination: Windows TerminalSSHtmux.

Auf pve2 war zusätzlich escape-time 10 — zu aggressiv.


Lösung

In /root/.tmux.conf auf allen betroffenen Hosts:

set -sg escape-time 50
set -as terminal-overrides ',*:O11=@'

Referenz: ../shared/tmux.conf · Ausführlich: ../shared/tmux-windows-terminal-fix.md

Neu laden:

tmux kill-server
# oder in laufender Session:
tmux source-file ~/.tmux.conf

Falls Leak bleibt: escape-time schrittweise auf 100 (nicht >500 — ESC-Lag in vim).


Verifiziert

  • pve1, pve2, Horus — Config deployed 2026-06-28
  • User-Bestätigung: Fix funktioniert

Deploy-Stand

Host Pfad
pve1 192.168.10.5 /root/.tmux.conf
pve2 192.168.10.4 /root/.tmux.conf (escape-time 10→50)
Horus 10.1.1.1 /root/.tmux.conf (neu)