Skip to content

Reconnect on its own; keep the key passphrase in the Keychain - #6

Merged
jcasimir merged 1 commit into
mainfrom
auto-reconnect
Nov 14, 2026
Merged

jcasimir merged 1 commit into
mainfrom
auto-reconnect

Conversation

@jcasimir

Copy link
Copy Markdown
Member

Makes Eternal Terminal unnecessary for non-technical users: the session already lives in tmux on the box, so work just reconnects when ssh drops (ServerAlive detects a dead link in ~45s; retries with backoff up to 10 min). ssh exits 255 for drops and refused logins alike, so only a session that had been up ≥15s is retried. macOS: UseKeychain/AddKeysToAgent so the key passphrase is asked once. ET is still used when installed. Tests drive the loop with a fake ssh.

🤖 Generated with Claude Code

ssh connections now notice a dead link within ~45s and work reconnects to the
same tmux session, so Eternal Terminal is optional rather than recommended. A
first attempt that fails at once (refused login) is reported, not retried. On
macOS the key's passphrase is asked once and kept in the Keychain.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jcasimir
jcasimir merged commit aabcbfe into main Nov 14, 2026
1 check passed
@jcasimir
jcasimir deleted the auto-reconnect branch November 14, 2026 01:54
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