tui-tools

tui-ssh

The SSH server as it really is, with every change previewed before it runs

A terminal UI (TUI) for ssh on Linux: the machine's SSH server.

v1.0.0Stable since 1.0.0sshMIT
The effective configuration: the settings that decide who gets in, each with a verdict and the file that set it
The effective configuration: the settings that decide who gets in, each with a verdict and the file that set it

A terminal UI for the machine's SSH server. It asks sshd what its configuration actually is — sshd -T, not what a file says — and shows the settings that decide who gets in first, each with a verdict and the file and line that set it.

Five more screens complete the picture: who is logged in right now and a way to end a session; what the authentication log says over the last day or week; the host keys and their fingerprints; the unit and its sockets; and the local accounts with the keys that log into them, where one is added or removed.

Changes go to a drop-in: tui-ssh never rewrites /etc/ssh/sshd_config. It writes 90-tui-ssh.conf, checks the staged file with sshd -t -f before asking anything, and shows the diff and both commands. sshd takes the first value it is given, so the include order is read too: if another file already sets the keyword earlier, the tool says so instead of writing a line that would be ignored. A keyword can also go inside a Match block, which the file keeps last: sshd reads what follows one as part of it.

Run tui-ssh --demo to drive a sample server: every key works, every command is built and previewed for real, and nothing touches your system.

Keys

KeyAction
tab / 1-6Move between config, sessions, auth log, host keys, service and users
enterOpen the selected row in full
eChange the selected setting, written to a drop-in with a diff to confirm
mChange a setting inside a Match block, for some connections only
AAdd a public key to an account's authorized_keys
tEnd the selected session
bBlock the selected address at the firewall
wSwitch the log window between the last 24 hours and 7 days
KRegenerate the server's host keys, old ones moved aside
rReload the SSH service
/Filter the rows of the current screen
xOn the users screen, remove the selected key from its account
R / ctrl+rRe-read the server, from any screen
?Help
qQuit

Press ? inside the tool for the full help screen, which is generated from the same action table as the key map.

Compatibility

This tool is a face on the program below, so its version matters. Tested is not a claim: a version lands there only after the tool's own suite passed against it on a real machine in the lab, and the run is kept as evidence in the repository. At startup the tool probes the backend once and says what it found in its header — a version nobody has run against is shown as (untested) in the warning colour, one older than the minimum as (below minimum) in the error colour. Neither stops it: the backend still refuses what it cannot do, in its own words.

openssh

ssh ≥ 8.2
Binary
ssh
Minimum
8.2
Probed with
ssh -V
Tested
9.610.210.510.6

Needs a version this new

  • include-dropinssince 8.2
  • kbd-interactivesince 8.7

What changes on older versions

  • openssh >=10.5

    sshd -T prints the canonical spelling of every keyword (PermitRootLogin no) where 10.2 and earlier lower-case it (permitrootlogin no); both forms are parsed to the canonical name, so the verdicts and the source lines are the same either way

  • openssh >=8.2

    the version comes from ssh -V, which prints to standard error; sshd -V only exists from OpenSSH 9.6, so asking the server itself would report nothing over most of the supported range

  • openssh <8.2

    Include does not exist, so /etc/ssh/sshd_config.d is never read; tui-ssh will not rewrite sshd_config itself, so the editor has nowhere to write and says so

  • openssh <8.7

    KbdInteractiveAuthentication is still spelled ChallengeResponseAuthentication; both are read, and the old name is what gets written

Maintain openssh? You are welcome to help shape this tool. About → maintainers

Guides

Written after the work, from a machine the commands were actually run on. Every guide that mentions tui-ssh is listed here.

  • Turn off SSH password login safely, with tui-ssh

    Before passwords go, make sure somebody can still get in with a key. tui-ssh shows who has one, writes PasswordAuthentication, KbdInteractiveAuthentication and PermitRootLogin to a drop-in it checks with sshd first, warns when an earlier file would win, and reads the result back from sshd -T. The proof is a second machine that gets refused with a password and let in with a key.

Install

Once per machine, then every tool in the family is one pacman away.

Add the repository
$ curl -fsSL https://pkgs.tui.tools/install.sh | sh
Or run the same thing yourself, one command at a time

A family whose whole promise is preview before you run is not going to insist you pipe a script into a shell. These are the commands that script runs.

The one-time setup, by hand
$ k="$(mktemp -d)/tui-tools.asc"
  curl -fsSL --proto =https --tlsv1.2 -o "$k" https://pkgs.tui.tools/pubkey.asc
  [ "$(gpg --show-keys --with-colons "$k" | awk -F: '$1 == "pub" { p = 1; next } p && $1 == "fpr" { print $10; p = 0 }')" = 767CFB337B01F32FFC073F3F389120B277E4FB44 ] && echo "key OK" || { echo "WRONG KEY: stop here"; rm -f "$k"; }
  sudo pacman-key --add "$k"
  sudo pacman-key --lsign-key 767CFB337B01F32FFC073F3F389120B277E4FB44
  printf '[tui-tools]\nServer = https://pkgs.tui.tools/arch/$arch\n' | sudo tee -a /etc/pacman.conf
  sudo pacman -Sy

The first lines check the signing key: go on only if they print key OK.

Arch Linux · tui-ssh
$ sudo pacman -S tui-ssh

Upgrades then arrive with the rest of your system updates.

What it can do to your machine

  • Preview, then confirm

    Every change is shown as an exact command line and confirmed before it runs. The dialog and the runner receive the same value, so the preview cannot drift from what executes.

  • Escalates for actions

    Two reads escalate through sudo -n, which never prompts: sshd -T, and cat for a file the plain read cannot open — sshd_config on Fedora and Arch, or another account's authorized_keys. Both fall back rather than demand a password, and the screen says so. Every change escalates too.

  • No daemon, no state of its own

    Nothing keeps running after you quit, and nothing is installed to run later. The system is the source of truth; the tool re-reads it after every change.

  • No network access

    The tool opens no network connection of its own. No telemetry, no update check, no phone home.

  • Static binary

    Released statically linked, with no runtime dependencies to install.

  • Signed release, with provenance

    checksums.txt carries a keyless cosign signature from this repository's release workflow, every archive has a CycloneDX SBOM, and every archive, package and the checksum file carry SLSA build provenance. The security page shows the three commands that check it.

Reporting

Report a security issue privately, through GitHub's private vulnerability reporting on the repository's Security tab. The family-wide policy, and what counts as in scope, is on the security page.

Downloads

v1.0.0 · 2026-11-18
FileSizeSHA-256
checksums.txt996 B—
checksums.txt.sigstore.json10 KB—
provenance.intoto.jsonl12 KB—
tui-ssh-1.0.0-1-aarch64.pkg.tar.zst1.8 MB74acbdcbf9cd5ccedd1151bf8bf6671a9dae4a916643693715310c94a5293d96
tui-ssh-1.0.0-1-x86_64.pkg.tar.zst2.0 MB4695e9ef3fb27ab4e35e38551958ebc628947b8bdf80c9ebb475dd1885660f80
tui-ssh-1.0.0-1.aarch64.rpm1.9 MB7520e5ac668148c6988f462a9bbfd1e44a96720a0cc086d4cd8c6aec17b9e221
tui-ssh-1.0.0-1.x86_64.rpm2.1 MB7cb3934141135fe2a656fbb2ea793ff983080e39d17b8aba7a46d9a1e87de0e4
tui-ssh_1.0.0_amd64.deb2.0 MBea60ac253ae0bed613481064e684e94204a53c47aefa4891a9ca97d2c05d9c60
tui-ssh_1.0.0_arm64.deb1.8 MB72a1c4bed8d0f14f43fb7667ce7aa534d51bb2c61380d37fd9df8ff84b8379b3
tui-ssh_1.0.0_linux_amd64.tar.gz2.0 MB977a41dedd5d8ca73e9d653a534848259c6119460481ad61349c3263b860053a
tui-ssh_1.0.0_linux_amd64.tar.gz.cyclonedx.json23 KBa2b27c53fe2129725d6973e3bef8fd20e5a84c20d5fd97f0a1acac50c81b688e
tui-ssh_1.0.0_linux_arm64.tar.gz1.8 MB908db82fe8a46295125f086a8754120aff5b1db0980f098cbcc4b245cce65c48
tui-ssh_1.0.0_linux_arm64.tar.gz.cyclonedx.json23 KB8f91e21d525bcaa794371775dd25d6aa3ffbb75846bc80c5dd89d5ffa49f77a6

Every release ships a checksums.txt. Download it next to the archive and run sha256sum -c checksums.txt --ignore-missing. See verifying a download.

Releases

v1.0.0

2026-11-18
## tui-ssh v1.0.0

tui-ssh 1.0.0: stable

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 275fdc39c168a8a2dd7cf081b13a78618da600a0 Bump github.com/tui-tools/tui-kit (#29)
* cf4540eb29b68079c8b13921b983a8bfd5df7491 Bump the github-actions group across 1 directory with 5 updates (#30)
* 38b8e73c3ad7e93977d41b0a8e713d708204e699 Explain an idle socket-activated sshd and offer to create /run/sshd (#32)
* f6058fc4c30b36b8118e2467b8b657349476944b Promote tui-ssh to stable: 1.0.0 (#37)
* b85ef884363790024c58695b5b5d55b7f0998ca5 Show why the editor refused a value, next to the field, without the value (#34)
* 608831170ff4dff7a3c8d0e9416d11147e20a72a Take tui-kit v0.5.0 and Go 1.27.4 (#35)
* 939880f6e04e53b810b2861376fee3b873b412cf Ubuntu socket activation, refused logins, and the without-password alias (#26)
* e29350c471b35d38f9d544df0d968de10f1bedfd Write authorized_keys as the account, never through its links as root (#31)
* d78849299d4d70cd0e7b0eca32c5fb22b544a0ac Write authorized_keys with tee, not install /dev/stdin (#33)

v0.2.4

2026-10-22
## tui-ssh v0.2.4

tui-ssh 0.2.4

- Built with Go 1.27.3, which fixes CVE-2026-111943 in the standard library (crypto/x509), and tui-kit v0.4.5; dependencies on their latest versions. No change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 411911a35ec8ad6cb50954c184e5d0218304863e 0.2.4: Go 1.27.3 (stdlib security fixes) (#22)
* 0fd113e99e42f4b9f7c4e43d1d74f30f8a2a40e7 Bump the github-actions group across 1 directory with 9 updates (#20)

v0.2.3

2026-10-20
## tui-ssh v0.2.3

tui-ssh 0.2.3

- Built with Go 1.27.2, which fixes CVE-2026-78667, CVE-2026-78669 and CVE-2026-97031 in the standard library (net/http, crypto/tls). No change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 133f05882db5b8edfe3ad81f5c8d1aee8463681b 0.2.3: Go 1.27.2 (stdlib security fixes) (#21)

v0.2.2

2026-09-25
## tui-ssh v0.2.2

tui-ssh 0.2.2: tui-kit v0.4.4

tui-ssh 0.2.2 moves to tui-kit v0.4.4: every sshd, ssh-keygen and systemctl step now runs in its own session without a controlling terminal, so a step that would prompt fails at once instead of hanging behind the UI, and a failed step reports its meaningful line, cleaned of escape codes. Command previews are POSIX shell-quoted, the README screenshots are re-rendered with continuous box borders, and the README banner now carries the kit's stability markers.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* fdf7deb4c88b0fb3005d25a1cdfd0716ceb540fc 0.2.2: tui-kit v0.4.4 (#17)
* 2241f127d4112cc94e692d53908524e7833a0b7e Bump anchore/sbom-action/download-syft (#3)
* 3d8d12a6396c24ed7df53e8e46081f7893527401 Bump anchore/sbom-action/download-syft in the github-actions group (#15)
* 02a622e5d5947e254addf486042e7de52df6af88 Bump the github-actions group with 4 updates (#16)
* b18f5e7277d659cce53d48ed7cdba8b9d5e568fa README: link the tool's page on tui.tools (#14)
* 28931ddb400ac41443147ab3a945cc0c41d1fef8 README: point the install snippet at the current release (#13)

v0.2.1

2026-09-02
## tui-ssh v0.2.1

tui-kit v0.3.0: the dialogs wrap and scroll instead of clipping the
command preview, and the picker filters as you type.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 59f464bd9b76a11ce67056a275d49d1de88330d5 Bump tui-kit to v0.3.0 (#12)

v0.2.0

2026-09-01
## tui-ssh v0.2.0

Manage, not view (wave 3): create what does not exist, edit what does; lab-validated.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 7de9b8fad1e34aab24b355b302a584b055330939 A code of conduct that fits on one screen (#9)
* f411e9dbb9b58995adbadb207913773ad832dd30 Add --report, and a bug form that asks for it (#10)
* cee2339649efe65892abca497c56e98d9a72d3ec Authorized keys and Match blocks from the TUI (#11)
* 0b5657572829034d7a747fe2ea9d3f4edb4e7f4e Carry the OpenSSF Best Practices badge (#7)
* 9c967dfcb1214ae3ef70c89c9b06db31ce4be23b Fetch the tag annotation before releasing (#5)
* 1d9051197bcfdc953a0a15e3b439aee8fe76fe9c Pin what CI runs, fuzz the parsers, and say the releases are signed (#2)
* 8c8401431438edd3c4522951b8a14e02b4027176 Print the whole tag message, not only its body (#6)
* ff9d48bc4abb5d680d8d80900869b212b3417291 Say beta once (#4)
* b33b5fcb3eb76e6e5f4d46db0b4cd6d90776698d Take tui-kit v0.2.8: hashed pip install, provenance bundle on the release (#8)

v0.1.2

2026-08-30
## Changelog
* ffcdb96595e5c0c7d81efe483fbfe91a5b180151 Drop cross-repo dispatch; the package repo and the site poll releases
* 3a41d0f39fa195a04fb3324a8bc59510d436840b Gate the release on a security job, and sign what it publishes (#1)
* f0c68266be6668976ee83cf817cb805b971cdbac Stop telling readers the packages are unpublished

v0.1.1

2026-08-30
## Changelog
* 1ee39bd3044f0d5ff14b0c6b656ce9dba42ce962 Packages are available from pkgs.tui.tools
* 15c103805478584a468d95b47c5a8523b9c9c192 Re-pin the kit at v0.2.3
* 9848e306785c46b81e361743accd591fa3cdccb2 Ship the tool as a .deb, an .rpm and a pacman package
* cb788ef277f7ee9c67a287f194afb49a20ce215b Stop flagging two defaults, and parse the sshd -T of OpenSSH 10.5

v0.1.0

2026-08-30
## Changelog
* 9340594db1c9641ef051937f8907d89ef6786dae Initial commit
* 453e9ea9679c3cf1373ce8c90aba8566ae2ae0bd Stop the version probe test pinning the CI image's OpenSSH
* bb1845bbeb057c17442bfe93d5c483e8ace2b67a Turn the template into tui-ssh