This script automates the generation of SSH public keys using private keys stored on a YubiKey. It supports various cryptographic algorithms, ensuring compatibility across different YubiKey models. Features include comprehensive checks for tool availability, YubiKey compatibility, and the presence of a single connected YubiKey.
- Supports RSA and ECC algorithms, including RSA2048, RSA4096, ECCP256, ECCP384, ED25519, and X25519.
- Automatically detects connected YubiKeys and verifies compatibility.
- Generates SSH keys based on the YubiKey's serial number, enhancing security and organization.
- Includes a counter to track the number of keys generated.