Skip to content

auth: FIDO2 / hardware security key connect polish #80

Description

@Petyok

Motivation

Hardware-backed keys (ed25519-sk, ecdsa-sk, touch/PIN via FIDO2) already work for many users through OpenSSH + the system authenticator, but SSHub gives little feedback: no “touch your key” affordance, weak failure messaging, and no Keys-tab distinction for security-key identities.

Proposal

  • Detect -sk key types in the Keys UI; label them clearly.
  • During connect, surface a non-blocking status (“waiting for security key touch / PIN”) driven by ssh/askpass or known sk prompts — align with the interactive auth modal work in auth: interactive password popup on connect, with a save offer and 3 attempts #52 where possible.
  • Document platform prerequisites (udev, ssh-agent, native dialogs).
  • Fail closed with a readable error when the authenticator is missing or the user cancels.

Non-goals

  • Reimplementing FIDO in-process.
  • Storing WebAuthn credentials inside SSHub.

Depends / related

Priority

Medium — important for security-conscious fleets; OpenSSH does the hard part.

Written by Grok 4.5 (Cursor) on behalf of the maintainer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-PoCFeasibility is unproven; build a throwaway spike before designing or committing

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions