From ad3ac4a4b13f1b7155cc1fd52ce2b79e662148ee Mon Sep 17 00:00:00 2001 From: Aleksey Shakhmatov Date: Fri, 30 Oct 2026 15:05:22 +0300 Subject: [PATCH] Add README with usage and key bindings Co-Authored-By: Claude Opus 5.5 --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..44c33f8 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# ysm — SSH key manager TUI with YubiKey support + +``` +go build -o ysm . && ./ysm +``` + +Manages the keys in `~/.ssh` (override with `YSM_SSH_DIR`). It needs OpenSSH 8.2+. +For YubiKey detection it uses `ykman` if installed, otherwise `lsusb`. + +| Key | Action | +|-----|--------| +| `↑↓` / `jk`, `enter` | move, show details (fingerprint, randomart, public key) | +| `n` | new key (ed25519 / rsa-4096 / ecdsa) | +| `y` | new key on the YubiKey (ed25519-sk / ecdsa-sk, resident, PIN-per-use) | +| `i` | import resident keys from the YubiKey (`ssh-keygen -K`) | +| `a` / `x` | add to / remove from ssh-agent | +| `c` | copy public key (wl-copy, xclip, xsel, pbcopy, or OSC 52) | +| `s` | install the public key on a server (`ssh-copy-id`) | +| `p` | change passphrase | +| `d` | delete key pair (asks first) | +| `r` / `q` | refresh / quit | + +Passphrases, PINs and touch are handled by `ssh-keygen` itself. ysm hands it the +terminal, so secrets never pass through the app. The YubiKey is polled every 2s, +so plugging it in or removing it shows up in the header.