This release is a pre-release and may not be stable for production use.
SSHCnfgr
English speaker? Jump to the English Summary at the bottom.
SSHCnfgr verwaltet deine OpenSSH-Hosts, Gruppen und Identities über eine einzige, saubere TOML-Datei (~/.ssh/sshcnfgr.toml) — per Textual-TUI, optionaler Qt6-Desktop-GUI (Wayland/X11/macOS/Windows) oder Click-CLI.
Highlights
- Eine einzige Datei neben
~/.ssh/config: Alles liegt in~/.ssh/sshcnfgr.toml(auf Linux/macOS automatisch mit0600-Rechten, unter Windows in%USERPROFILE%\.ssh\sshcnfgr.toml) — ideal für den direkten Start peruvx. - TOML als Source of Truth: Deaktivierte Hosts bleiben in der Datenbank erhalten, landen aber nicht in der generierten OpenSSH-Config (
~/.ssh/config.generated, ebenfalls0600). - Dubletten finden & zusammenführen: Erkennt Hosts mit gleichem Ziel (
HostName+ effektiverPort+ effektiverUser), zeigt Feld-Konflikte übersichtlich an und führt Einträge interaktiv zusammen (übrige Dubletten wahlweise deaktivieren oder löschen). - TUI, Qt6-GUI & CLI: Im Terminal mit Textual, auf dem Desktop optional mit PySide6/Qt6 (Live-Suche, Gruppen-/Identity-Tabs,
extra_options-Editor, Config-Vorschau) oder skriptbar über die CLI. - Sicherheitsnetz: Keine Speicherung privater Schlüssel-Inhalte (nur Pfade &
.pub-Metadaten), atomares Schreiben und automatische Zeitstempel-Backups (*.bak.YYYYMMDD-HHMMSS) vor jedem Überschreiben.
Schnellstart mit uv / uvx
Hinweis zur Beta-Version (
0.2.0b1): Da es sich um eine Vorabversion handelt, benötigtuvx/uv tool installaktuell das Flag--prerelease=allow. Ab dem regulären0.2.0-Release entfällt dieses Flag.
Ohne Installation direkt ausführen (uvx)
# Textual-TUI direkt starten (legt ~/.ssh/sshcnfgr.toml bei Bedarf an)
uvx --prerelease=allow sshcnfgr
# Optionale Qt6 Desktop-GUI starten (Wayland / X11 / macOS / Windows)
uvx --prerelease=allow --from "sshcnfgr[qt]" sshcnfgr gui
# Bestehende ~/.ssh/config importieren
uvx --prerelease=allow sshcnfgr import --source ~/.ssh/config
Dauerhaft als CLI-Tool installieren (uv tool install)
# Terminal-Version (TUI + CLI)
uv tool install --prerelease=allow sshcnfgr
# Inklusive Qt6 Desktop-GUI
uv tool install --prerelease=allow "sshcnfgr[qt]"
# Danach direkt nutzbar:
sshcnfgr # startet die TUI
sshcnfgr gui # startet die Qt6-GUI
sshcnfgr --help # zeigt alle Kommandos
(Falls uv noch nicht installiert ist: curl -LsSf https://astral.sh/uv/install.sh | sh auf Linux/macOS bzw. powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" unter Windows.)
Linux AppImage (ohne Python / ohne uv)
Für Linux-Desktop-Nutzer (z. B. Linux Mint, Ubuntu, Debian, Fedora) steht bei jedem GitHub Release eine fertige SSHCnfgr-*-x86_64.AppImage inklusive gebündelter Qt6-GUI bereit — es werden weder Python noch uv benötigt.
Optimal: Integration & Auto-Update mit Gear Lever (empfohlen)
SSHCnfgr-*-x86_64.AppImagevon den GitHub Releases herunterladen.- In Gear Lever (per Flatpak / Software-Verwaltung) öffnen und „In Anwendungsmenü verschieben“ (Move to the app menu) klicken.
- Fertig: Icon, Startmenü-Eintrag und Wayland/X11-Desktop-Integration werden automatisch eingerichtet.
- Auto-Update inklusive: Im AppImage sind bereits
gh-releases-zsync-Update-Metadaten eingebettet (gh-releases-zsync|thomsbe|SSHCnfgr|latest|SSHCnfgr-*-x86_64.AppImage.zsync), und jedes Release liefert automatisch die passende.AppImage.zsync-Datei mit. Gear Lever erkennt Updates damit von selbst und lädt per Delta-Update nur die geänderten Blöcke nach. (Hinweis: Der Standard-Kanallatestfolgt regulären Releases — bei als Pre-Release markierten Betas in Gear Lever ggf. Pre-Releases aktivieren.)
Direkt ohne Gear Lever starten
chmod +x SSHCnfgr-*-x86_64.AppImage
./SSHCnfgr-*-x86_64.AppImage # startet direkt die Qt6 Desktop-GUI (wie Doppelklick)
./SSHCnfgr-*-x86_64.AppImage tui # startet die Textual-TUI im Terminal
./SSHCnfgr-*-x86_64.AppImage --help # alle CLI-Kommandos direkt nutzbar
(Falls auf einem System kein libfuse2 installiert ist, funktioniert der Start jederzeit mit APPIMAGE_EXTRACT_AND_RUN=1 ./SSHCnfgr-*-x86_64.AppImage oder --appimage-extract-and-run.)
Typischer Ablauf
- Vorhandene SSH-Config importieren (deine
~/.ssh/configwird nur gelesen):sshcnfgr import --source ~/.ssh/config
- Lokale SSH-Keys erfassen (nur Pfade &
.pub-Vorschau, keine Private Keys):sshcnfgr identities scan
- Hosts pflegen & Dubletten aufräumen:
- In der TUI (
sshcnfgr) mitCtrl+Uoder Button „Dubletten“ - Oder in der Qt6-GUI (
sshcnfgr gui) über „Dubletten…“ (Ctrl+U)
- In der TUI (
- OpenSSH-Config erzeugen:
sshcnfgr generateStandard-Ausgabe ist~/.ssh/config.generated(0600). Du kannst sie direkt perIncludein deiner~/.ssh/configeinbinden:Include config.generated
CLI-Übersicht
sshcnfgr # TUI direkt starten
sshcnfgr tui # TUI starten
sshcnfgr gui # Qt6 Desktop-GUI starten ([qt]-Extra)
sshcnfgr import --source ~/.ssh/config # OpenSSH-Config importieren
sshcnfgr generate --output ~/.ssh/config.generated # OpenSSH-Config generieren
sshcnfgr identities scan # Keys aus ~/.ssh erfassen
sshcnfgr identities list # Bekannte Identities anzeigen
sshcnfgr groups set-identity prod id_ed25519 # Gruppen-Default-Identity setzen
sshcnfgr --version # Version anzeigen
Optionales File-Logging (Standard: keine Logdatei):
sshcnfgr --verbose --log-file /tmp/sshcnfgr.log generate
Dateien & Migration
| Datei | Zweck |
|---|---|
~/.ssh/sshcnfgr.toml |
Zentrale Source of Truth (Hosts, Gruppen, Identities, global_options, [ui]), 0600 auf POSIX |
~/.ssh/config.generated |
Generierte OpenSSH-Config (nur aktive Hosts, Host * am Ende), 0600 auf POSIX |
*.bak.YYYYMMDD-HHMMSS |
Automatisches Zeitstempel-Backup vor jedem Überschreiben |
Migration aus
0.1.0a1: Falls~/.ssh/sshcnfgr.tomlnoch nicht existiert, aber noch eine ältere~/.config/sshcnfgr/hosts.tomlvorhanden ist, lädt SSHCnfgr diese automatisch und schreibt beim nächsten Speichern nach~/.ssh/sshcnfgr.toml.
Entwicklung & Release
git clone https://github.com/thomsbe/SSHCnfgr.git
cd SSHCnfgr
uv sync --extra dev --extra qt
# Linting & Tests (inkl. Textual Pilot & Qt6 Offscreen)
uv run ruff check .
QT_QPA_PLATFORM=offscreen uv run pytest -v
Paket bauen & auf PyPI veröffentlichen
uv build
uv run twine check dist/*
uv publish
Weitere Dokumente: CHANGELOG.md, SECURITY.md, CONTRIBUTING.md, LICENSE (MIT).
English Summary
SSHCnfgr is a cross-platform (Linux, macOS, Windows) manager for OpenSSH host configurations backed by a single TOML file (~/.ssh/sshcnfgr.toml, 0600 permissions on POSIX) located right next to ~/.ssh/config.
Key Features
- Single source of truth: Manage hosts, groups, identity profiles, and global defaults in
~/.ssh/sshcnfgr.tomland generate clean OpenSSH configs (~/.ssh/config.generated) containing only enabled hosts. - Duplicate detection & interactive merge: Finds hosts pointing to the same effective
(HostName, Port, User)target, highlights field conflicts, merges non-conflicting attributes, and lets you disable or delete duplicates safely. - Three interfaces: Interactive Textual TUI (default), optional Qt6 desktop GUI (
PySide6-Essentials, Wayland/X11/macOS/Windows), and Click CLI. - Safe by design: Never reads or stores private SSH key contents; writes atomically with
0600permissions and creates timestamped backups before overwriting.
Quickstart
# Run directly with uvx (during 0.2.0b1 beta, pass --prerelease=allow)
uvx --prerelease=allow sshcnfgr
uvx --prerelease=allow --from "sshcnfgr[qt]" sshcnfgr gui
# Or install globally as a tool
uv tool install --prerelease=allow sshcnfgr
uv tool install --prerelease=allow "sshcnfgr[qt]"
# Import existing OpenSSH config & generate
sshcnfgr import --source ~/.ssh/config
sshcnfgr generate
On Linux desktops (without Python or uv), download SSHCnfgr-*-x86_64.AppImage from GitHub Releases. Open it in Gear Lever for one-click app-menu integration and automatic delta updates (gh-releases-zsync metadata and .zsync files are included), or make it executable (chmod +x) and run it directly (opens the Qt6 GUI by default; CLI/TUI arguments also work).
Licensed under the MIT License. See SECURITY.md for security reporting and CONTRIBUTING.md for development details.
Metadata
Release files for sshcnfgr 0.2.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sshcnfgr-0.2.0b1.tar.gz | 43.1 kB | Without provenance | Details for sshcnfgr-0.2.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sshcnfgr-0.2.0b1-py3-none-any.whl | Python 3 | none | any | Details for sshcnfgr-0.2.0b1-py3-none-any.whl |
Total release size: 91.9 kB
Release files / sshcnfgr-0.2.0b1.tar.gz
| Download URL | sshcnfgr-0.2.0b1.tar.gz |
|---|---|
| Size | 43.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbb7129c0e903cf88a3d5e93a8bca064ff81a743a634e71b6b6ac7be8c449e78
|
|
BLAKE2b-256 checksum How to use checksums |
8fd484f59ed08ffc4f91e7788b3c88a0742267619f3f4902bbef8c4316a44f6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / sshcnfgr-0.2.0b1-py3-none-any.whl
| Download URL | sshcnfgr-0.2.0b1-py3-none-any.whl |
|---|---|
| Size | 48.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10cdd6cdf1a5631384d73cbb01c2f44fd3fc108aec378adb10f257925d90376f
|
|
BLAKE2b-256 checksum How to use checksums |
9d97288a9f89aa2a5b5c4e9db612cafe63a37a27259fe9760b2238dfdb579829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for sshcnfgr 0.2.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.