Skip to content

fix: handle XShell 8 extended handshake (trailing key name) for agent forwarding - #2

Merged
zzmark merged 1 commit into
zzmark:xshellfrom
boypt:xshell8-forward
Nov 11, 2026
Merged

zzmark merged 1 commit into
zzmark:xshellfrom
boypt:xshell8-forward

Conversation

@boypt

@boypt boypt commented Nov 11, 2026

Copy link
Copy Markdown

Builds on PR buptczq#91 (xshell compat). XShell 8 build 0119 sends an extended handshake frame carrying a key name after the cookie during agent forwarding; the old check Length < len(Cookie) rejected it as 'invalid message length', causing XShell to close the probe connection and break forwarding. Truncate the cookie to Length instead.

Verified: ssh -vvv localhost through XShell forwarding succeeds (agent returned 1 keys, Authenticated ... using publickey, exit 0).

@zzmark
zzmark merged commit d21fe89 into zzmark:xshell Nov 11, 2026
1 check passed
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.

2 participants