Skip to content

feat: improve SSH with timeout flags, debug toggle, key picker#82

Merged
larkly merged 1 commit intomainfrom
feat/ssh-improvements
Mar 29, 2026
Merged

feat: improve SSH with timeout flags, debug toggle, key picker#82
larkly merged 1 commit intomainfrom
feat/ssh-improvements

Conversation

@larkly
Copy link
Copy Markdown
Owner

@larkly larkly commented Mar 29, 2026

Summary

  • Fix SSH hanging by adding -t (force TTY), -o ConnectTimeout=10, -o ServerAliveInterval=15, -o ServerAliveCountMax=3
  • Add inline file picker for SSH keys from ~/.ssh/ with filtering and keyboard navigation
  • Add editable key path field (pre-filled from server's key pair, overridable)
  • Add verbose mode (-v) checkbox toggle
  • Add Tab/Shift+Tab navigation between User, Key, and Debug fields

Test plan

  • Press x on a server — modal shows 3 navigable fields (User, Key, Debug)
  • Tab cycles through fields, Shift+Tab goes backwards
  • Enter on Key field opens file picker listing ~/.ssh/ keys
  • Picker filters by filename, j/k navigate, Enter selects, Esc cancels
  • Space toggles debug checkbox on/off
  • Connect to a reachable server — SSH works with new flags
  • Connect to an unreachable IP — times out after ~10s instead of hanging
  • Enable debug, connect — see verbose SSH output
  • y copies SSH command including new hardening flags

Add connection timeout (-o ConnectTimeout=10), TTY allocation (-t), and
keepalive flags to prevent SSH from hanging on unreachable hosts. Upgrade
the SSH prompt modal to support Tab navigation between user, key, and
debug fields. Add an inline file picker for ~/.ssh/ keys with filtering,
and a checkbox to enable verbose mode (-v).
@larkly larkly merged commit 94f5186 into main Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant