Skip to content

Does Neogit support FIDO2 SSH keys with pins? #1495

Answered by CKolkey
sophieforrest asked this question in Q&A
Discussion options

You must be logged in to vote

Makes sense - the underlying git process is waiting for user input (stdin) which it doesn't get.

If you're up for it, check out the handlers here: https://github.com/NeogitOrg/neogit/blob/master/lua/neogit/lib/git/cli.lua#L871-L882 - thats the source of lines 63/64 that you noted. You'll want to add a handler that matches the lines and gets/writes the needed input. There's already a handler for GPG with loopback, which is why that works :)

I'm not entirely sure how it would work with the physical interaction required, but it might work fine.

Alternatively, you could check for the presence of the SSH_ASKPASS variable here and set it in this table. The table gets used to set the ENV for the…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sophieforrest
Comment options

@sophieforrest
Comment options

@CKolkey
Comment options

Answer selected by sophieforrest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants