Homebrew does not pick up SSH binary from users $PATH #4198
Unanswered
MadsRC
asked this question in
Everyday usage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew configOutput of
brew doctorDescription of issue
It seems that
brewdoesn't use the SSH version in the user's current$PATH, which is evident from the following command:Now, the reason it works when running
gitdirectly is because that's theopensshversion installed usingbrewand not the default MacOS one, which doesn't support FIDO2 security keys.I've tried exporting
GIT_SSH_COMMAND=/opt/homebrew/bin/ssh(which should tell thegitcommand run bybrewto use a specific SSH command) before runningbrew, but I still get theLoad key "/Users/mrh/.ssh/id_ed25519_sk": unknown or unsupported key typeerror, indicating that it is using a version ofsshthat doesn't support FIDO2 keys.I've also tried looking for
.gitconfigfiles around my system to see if there's one somewhere thatbrewuses, but to no avail.Does anyone have any idea how to force
brewto use thesshbinary in the users$PATHand not whatever version it defaults to?Beta Was this translation helpful? Give feedback.
All reactions