YubiKey OpenPGP Remote sudo with SSH Agent Forwarding
YubiKey OpenPGP Remote sudo with SSH Agent Forwarding
This note records a pattern I like for remote Linux administration:
- normal SSH login stays on the usual SSH key or password mechanism;
- sudo authentication uses a hardware-backed OpenPGP authentication key on a local YubiKey;
- the remote host validates the forwarded SSH agent instead of storing the private key;
- password-based sudo remains available as a fallback.