Skip to content

feat: report SSH users and connection failures - #64

Merged
abruption merged 1 commit into
mainfrom
feat/62-ssh-user-diagnostics
Sep 15, 2026
Merged

abruption merged 1 commit into
mainfrom
feat/62-ssh-user-diagnostics

Conversation

@abruption

@abruption abruption commented Sep 15, 2026 •

Copy link
Copy Markdown
Owner

SSH host identity does not determine a destination OS account, so a host found through known_hosts, Tailscale, or MagicDNS could silently fall back to the caller's local username and then surface only an opaque connection error. This change reports an explicit USER@HOST as authoritative; otherwise it uses ssh -G with the original alias and the same routing/options to expose OpenSSH's effective configured/default user. It does not infer accounts from host metadata or retry guessed usernames.

All successful remote command paths and SSH connection failures now preserve sshUser and sshUserSource. Failed SSH attempts are classified as authentication_failed, host_key_failed, timeout, or transport_failed, with an actionable authentication remedy. Remote version probes also distinguish SSH failure from a successfully reached host where the standalone script is absent.

Validation:

  • python3 -m compileall -q cc_peer.py session_peer.py tests
  • python3 -m unittest discover -s tests -v (181 tests)
  • uv build
  • wheel content verification (session_peer.py present, legacy cc_peer.py absent)
  • git diff --check
  • local read-only ssh -G localhost user resolution
  • conflict-free merges with feat: validate active Codex homes and localize replies #63 in both orders; the merged tree is identical and passes all 198 combined tests

Closes #62

@abruption
abruption force-pushed the feat/62-ssh-user-diagnostics branch from 518ddb3 to 6ffb123 Compare September 15, 2026 08:50
@abruption
abruption changed the base branch from main to feat/61-active-codex-home-reply September 15, 2026 08:50
@abruption
abruption force-pushed the feat/62-ssh-user-diagnostics branch from 6ffb123 to d6e96f0 Compare September 15, 2026 08:55
@abruption
abruption changed the base branch from feat/61-active-codex-home-reply to main September 15, 2026 08:55
@abruption
abruption force-pushed the feat/62-ssh-user-diagnostics branch from d6e96f0 to 3e30e51 Compare September 15, 2026 08:56
@abruption
abruption merged commit c3f49fb into main Sep 15, 2026
9 checks passed
@abruption
abruption deleted the feat/62-ssh-user-diagnostics branch September 15, 2026 08:59
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.

feat: resolve SSH usernames and report authentication failures

1 participant