How to use git_credential_ssh_custom_new? #7055
Unanswered
JonasVautherin
asked this question in
Q&A
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.
-
I am trying to use
git_credential_ssh_custom_new
in order to sign the SSH challenge manually (using a hardware key).I don't understand when
sign_callback
is supposed to be called. In my case, it never is, and therefore my git_credential_acquire_cb is called in a loop. My best guest is that probably I am not giving the right publickey togit_credential_ssh_custom_new
, but I am not sure what the documentation means by "The bytes of the public key". Should I just read the.pub
file as bytes and pass that?My overall idea is to have
git_credential_ssh_custom_new
register thesign_callback
, where I would receive the SSH challenge, sign it with my private key (which is on a hardware key) and return it. But it seems like I am missing something...Beta Was this translation helpful? Give feedback.
All reactions