|
|
|
|
|
by lrvick
3806 days ago
|
|
There is already a standard solution for this imo. Get a GPG smartcard like a Yubikey and put an Authentication subkey on it. Now to ssh to anything, clone from Github, etc you insert your Yubikey, and enter your pin to unlock it. A gpg-agent process is created that acts as a standard ssh agent. No server modifications required and you get strong hardware backed 2FA. The ssh private key never enters system memory and could not be stolen even by an untrusted machine. If the smartcard itself is stolen, it will brick itself on 3 incorrect pin attempts. The same device can also store all your OTP tokens or behave as U2F depending on what a service supports so the end game is secrets no longer live on disk or in memory on your systems. This also integrates well on Android devices via the Yubikey Neo with apps like Yubico Authenticator and Open Keychain, |
|
This has happened in the past[1]. I'm a huge fan of the CCID/GPG capabilities of the YubiKey, but I'm not sure they should be used in isolation in high-security environments.
[1]: https://developers.yubico.com/ykneo-openpgp/SecurityAdvisory...