ssh keys

Generate SSH keys

src:

# generate SSH key in ED25519 scheme
ssh-agent -a 100 -t ed25519 -C 'lin.louis@pm.me'
 
# add to ssh key to ssh agent so we don't need to type the passphrase all the time
ssh-add ~/.ssh/id_ed25519

Signing git commits and tags

git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub
echo "$(git config --get user.email) namespaces=\"git\" $(cat ~/.ssh/id_ed25519.pub)" >> ~/.ssh/allowed_signers
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers
git config --global commit.gpgsign true
git config --global tag.gpgsign true
git config --global format.signoff true