git config --global commit.gpgsign true
git config --global gpg.format ssh
ssh-add -L
git config --global user.signingkey "ssh-ed25519 <your key id>"
git commit --allow-empty --message="Testing SSH signing"
ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add --apple-use-keychain --apple-load-keychain ~/.ssh/id_ed25519
Create the file ~/.ssh/config
and add the following to it:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
Test a specific key: ssh -vT [email protected]
See list of all added keys in the ssh-agent: ssh-add -l
Add all keys to the ssh-agent: ssh-add --apple-use-keychain --apple-load-keychain