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

Automatically show authentication UI if signing fails #12

Open
daguej opened this issue Sep 15, 2020 · 1 comment · May be fixed by #14
Open

Automatically show authentication UI if signing fails #12

daguej opened this issue Sep 15, 2020 · 1 comment · May be fixed by #14

Comments

@daguej
Copy link

daguej commented Sep 15, 2020

It would be nice if tergent could trigger biometric authentication if signing fails, then retry sigining.

I've already done alias ssh='termux-fingerprint 1>/dev/null; ssh', but:

  • You have to reauthenticate every time, regardless of the validity timeout
  • ssh invoked from outside the shell won't authenticate

Should be as simple as extending the bridge to support api_method Fingerprint and call it if signing fails.

@daguej
Copy link
Author

daguej commented Feb 2, 2023

As a slight tweak to my workaround, I've modified ~/.ssh/config to include:

Match exec termux-fingerprint
    PKCS11Provider /data/data/com.termux/files/usr/lib/libtergent.so

This causes ssh to invoke the fingerprint UI without relying on a shell alias. This is slightly nicer, although you still have to reauthenticate every time.

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

Successfully merging a pull request may close this issue.

1 participant