Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh: agent support is incompatible with OpenSSH >= 8.9 (ssh: parse error in message type 27) #3273

Closed
AkihiroSuda opened this issue Nov 11, 2022 · 3 comments · Fixed by #3274
Labels

Comments

@AkihiroSuda
Copy link
Member

AkihiroSuda commented Nov 11, 2022

As of BuildKit v0.10.5, buildctl build --ssh default=$SSH_AUTH_SOCK seems incompatible with OpenSSH 8.9 (https://www.openssh.com/agent-restrict.html).

Any ssh-enabled command such as RUN --mount=type=ssh ssh [email protected] fails with ssh: parse error in message type 27 in the --debug log.

Tried to bump up x/crypto to v0.2.0, but no success; The ssh: parse error in message type 27 error disappears after bumping up x/crypto, but the ssh command still fails with [email protected]: Permission denied (publickey). (EDIT: just forgot to run ssh-add)

Initially reported by several people in golang/go#51689 (comment)

This issue does not affect the non-agent mode (--ssh default=$HOME/.ssh/id_rsa)

@tonistiigi
Copy link
Member

What's in v0.10.5 that breaks this?

@AkihiroSuda
Copy link
Member Author

What's in v0.10.5 that breaks this?

Not a regression in v0.10.5.

x/crypto/ssh was incompatible with OpenSSH 8.9, and fixed in golang/crypto@bd7e27e

@AkihiroSuda
Copy link
Member Author

AkihiroSuda commented Nov 11, 2022

Noticed that my English usage of "as of" was wrong 🙇
https://en.wiktionary.org/wiki/as_of

I meant I just tested v0.10.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants