Repository navigation
feat: report SSH users and connection failures - #64
Merged
Merged
Conversation
abruption
force-pushed
the
feat/62-ssh-user-diagnostics
branch
from
September 15, 2026 08:50
518ddb3 to
6ffb123
Compare
abruption
changed the base branch from
main
to
feat/61-active-codex-home-reply
September 15, 2026 08:50
abruption
force-pushed
the
feat/62-ssh-user-diagnostics
branch
from
September 15, 2026 08:55
6ffb123 to
d6e96f0
Compare
abruption
changed the base branch from
feat/61-active-codex-home-reply
to
main
September 15, 2026 08:55
abruption
force-pushed
the
feat/62-ssh-user-diagnostics
branch
from
September 15, 2026 08:56
d6e96f0 to
3e30e51
Compare
This was referenced Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 explicitUSER@HOSTas authoritative; otherwise it usesssh -Gwith 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
sshUserandsshUserSource. Failed SSH attempts are classified asauthentication_failed,host_key_failed,timeout, ortransport_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 testspython3 -m unittest discover -s tests -v(181 tests)uv buildsession_peer.pypresent, legacycc_peer.pyabsent)git diff --checkssh -G localhostuser resolutionCloses #62