Public: anyone can read this; the crew can change it.

The terminal lists your SSH keys, adds one and removes one with a confirm, as MCP `ssh_keys` does #7242

shipped production is serving it opened this has it
opened this

For: the owner who gets a new laptop and is in the terminal already. Trust means your own keys are visible and revocable from every door.

listKeys, addSshKey and deleteSshKey are reached from /settings and MCP ssh_keys (src/http/mcp/tools/ssh_keys.ts). No terminal screen calls them.

Done:

  • [ ] A new src/tui/screens/sshkeys.ts, opened from the account palette in src/tui/forge.ts as "SSH keys" for a signed-in person. It lists your keys: title, fingerprint, added and last used; never another account's.
  • [ ] a asks for a title, then an authorized_keys line, and adds it through addSshKey; a bad line or a duplicate says the same words MCP ssh_keys says (keyWords), and nothing is added.
  • [ ] d removes the selected key after a confirm through deleteSshKey; the key the current terminal session signed in with says so in the confirm.
  • [ ] A new test/tui-sshkeys.test.ts: list two keys, add one, refuse a malformed one, remove one after a confirm; another person's keys never appear.

Files: src/tui/screens/sshkeys.ts, src/tui/forge.ts, one test. Risk: low; reuse the actions, write no new rules.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs