I run into this about every tenth day. Just enough off the pace of memorization to look it up when a switch misfires…
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
Just in case.
A lot of the work I’m doing today, and the last few days, is re-working id_rsa and other secret retrieval from vault, grabbing it from our clustered vault server, then re-authenticating to the local on-the-box vault and populating it locally for future use. In doing that I’ll find we have the private key, but the public is missing in vault. If it turns out to be actually needed this recreates it.
— doug