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

Failure to authenticate with Yubikey FIDO2 SSH key #35

Open
d4hines opened this issue Feb 13, 2024 · 1 comment
Open

Failure to authenticate with Yubikey FIDO2 SSH key #35

d4hines opened this issue Feb 13, 2024 · 1 comment

Comments

@d4hines
Copy link
Contributor

d4hines commented Feb 13, 2024

When running yggit (on my dev branch) I get the following error after correctly entering my pin and touching my Yubikey:

cargo run -- push           
   Compiling yggit v0.0.1 (/home/d4hines/repos/yggit)
    Finished dev [unoptimized + debuginfo] target(s) in 0.73s
     Running `target/debug/yggit push`
Setting branch d4hines/more-characters to commit 3c12c3313056fd57fde672ae1076d8adc2b59815
Setting branch d4hines/nix to commit 0fc6732a9cce20673d2d64b00a5497ff86caee09
thread 'main' panicked at src/git/git.rs:143:14:
fetch repository has fialed: Error { code: -1, klass: 0, message: "all authentication attempts failed" }
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::result::Result<T,E>::expect
             at /build/rustc-1.75.0-src/library/core/src/result.rs:1034:23
   4: yggit::git::git::Git::find_remote_head
             at ./src/git/git.rs:136:9
   5: yggit::core::push_from_notes
             at ./src/core.rs:88:29
   6: yggit::commands::push::Push::execute
             at ./src/commands/push.rs:42:9
   7: yggit::main
             at ./src/main.rs:34:33
   8: core::ops::function::FnOnce::call_once
             at /build/rustc-1.75.0-src/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The ssh-agent is definitely prompting the Yubikey, but it looks like Yggit is somehow not properly looking for the response.

@d4hines
Copy link
Contributor Author

d4hines commented Feb 14, 2024

(FWIW this is no longer a blocker for me - I switched back to PGP-based keys anyway since I was having trouble with preserving the no-touch-required option with resident keys. Typing in my pin and touching the key every few minutes was getting annoying).

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

No branches or pull requests

1 participant