by TacticalCoder · 1y ago · 0 comments
It's not a problem. You can use SSH today (and since years already now) with Yubikey and the likes. I'm using Git over SSH with Yubikeys and it works.
Use Git over SSH, use a Yubikey (or whatever suits you), set the login shell to git-shell.
Reuse of an existing key for any reason after enrollment is not a good idea. A reluctance to just enroll another key may mean trouble with key rotation and revocation, and thus problematic security procedures. Key rotation should be fast, painless, and regular.