These are mainly personal notes to myself about doing stuff I have done or need to do and will probably forget exactly how to do later. Always look up what things mean before doing it.
These are mainly personal notes to myself about doing stuff I have done or need to do and will probably forget exactly how to do later. Always look up what things mean before doing it.
If you use Yubikey that stores a PGP authentication key for ssh, you likely will need to add it to another computer later. This is just a quick list of things you need.
sudo apt install gnupg libpcsclite1 pcscd scdaemon
gpg --card-status
gpg/card> fetch
gpg --list-secret-keys --with-subkey-fingerprint
gpg --edit-key XXXX
gpg> trust
5 = I trust ultimately
echo "enable-ssh-support" >> $HOME/.gnupg/gpg-agent.conf
echo 'export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)' >> $HOME/.bashrc
source .bashrc
gpgconf --reload gpg-agent
gpg-connect-agent 'keyinfo --list' /bye
ssh-add -l
gpg --list-secret-keys --with-subkey-fingerprint
gpg --export-ssh-key XXX