Devices: match the host in ssh's login line case-insensitively (review round 23)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
saphidandClaude Opus 5.5 committed 2026-09-29 01:01:29 +10:00
1 parent b779376f5b
commit 22863f2f87
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -906,7 +906,8 @@ class Link:
(ssh -v passes its verbosity on to ProxyJump's own ssh)."""
host = next((o.split("=", 1)[1].replace("%%", "%") for o in opts if o.startswith("HostName=")), alias)
m = re.search(r"Authenticated to (\S+)", line)
return not m or m.group(1) in (host, alias) or "Authentication succeeded" in line
# OpenSSH lower-cases host names (FRAME.LOCAL logs as frame.local).
return not m or m.group(1).lower() in (host.lower(), alias.lower()) or "Authentication succeeded" in line
def failed(self, step, said, mismatch, alias):
text = "\n".join(said).strip()