Files
ysm/README.md
T
2026-10-30 15:05:22 +03:00

26 lines
1.0 KiB
Markdown

# 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.